? How to create a dot or any type of hr string (double, dotted, etc.) using CSS?

How to create a dot tag <hr / ">?

How to create a dot or any type of hr string (double, dotted, etc.) using CSS?

<hr style="...what should I write?..." /> 

or is there another trick?

+52
html css
May 29 '13 at 16:59
source share
6 answers

You can only have <hr style="border-top: dotted 1px;" /> <hr style="border-top: dotted 1px;" /> . That should work.

+101
May 29 '13 at 17:02
source share
 hr { border-top:1px dotted #000; /*Rest of stuff here*/ } 
+24
May 29 '13 at 17:01
source share
 hr { border: 1px dotted #ff0000; border-style: none none dotted; color: #fff; background-color: #fff; } 

try it

+11
May 29 '13 at 17:04
source share

You can do:

 <hr style="border: 1px dashed black;" /> 

Demo: http://jsfiddle.net/JMfC9/

+10
May 29 '13 at 17:01
source share

The <hr> is just a short element with a border:

 <hr style="border-style: dotted;" /> 
+8
May 29 '13 at 17:01
source share

You can do:

 <hr style="border-bottom: dotted 1px #000" /> 
+7
May 29 '13 at 17:02
source share



All Articles