I have a <div> element and I want to put a border on it. I know I can write style="border: 1px solid black", but this adds 2px to either side of the div, which is not what …
I am trying to define a border around a div tag in HTML. In some browsers the border does not appear.
Here is my HTML code:
How do I set a border for an HTML div tag?
I am using dotted style border in my box like
.box {
width: 300px;
height: 200px;
border: dotted 1px #f00;
float: left;
}
I want to the increase the space between each dot of the border.