Jump to content

Dotted square borders?

stefanmz
Go to solution Solved by C2dan88,

There are no square dotted borders, dotted borders are actually round dots they become square looking when the radius becomes to small. The radius of the dots is half the border width.

 

You can come up your own border style using a image

https://developer.mozilla.org/en-US/docs/Web/CSS/border-image

 

Hey I was juts wondering, I have a canvas in html and I am making a border for it in CSS but when I try to do for example 5px dotted border,the border is made out of circles,and I want squares(I mean I ccan do dashed but that makes it rectangles). Also if I do 2 px dotted the border is actually made out of squares but if I do 5 px dotted it's made out of circles. How do I get squares? 

 

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, C2dan88 said:

There are no square dotted borders, dotted borders are actually round dots they become square looking when the radius becomes to small. The radius of the dots is half the border width.

 

You can come up your own border style using a image

https://developer.mozilla.org/en-US/docs/Web/CSS/border-image

 

I see,well thanks! I might then just add my own image with squares

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×