How to create a dotted <hr/> tag?
HtmlCssHtml Problem Overview
How can I create a dotted or any type of hr line (double, dashed etc.) using CSS?
<hr style="...what should I write?..." />
or is there any other trick?
Html Solutions
Solution 1 - Html
You could just have <hr style="border-top: dotted 1px;" />
. That should work.
Solution 2 - Html
hr {
border-top:1px dotted #000;
/*Rest of stuff here*/
}
Solution 3 - Html
hr {
border: 1px dotted #ff0000;
border-style: none none dotted;
color: #fff;
background-color: #fff;
}
Try this
Solution 4 - Html
Solution 5 - Html
The <hr>
tag is just a short element with a border:
<hr style="border-style: dotted;" />
Solution 6 - Html
You can do:
<hr style="border-bottom: dotted 1px #000" />