-1

Horizontal line

how to create the horizontal line with dash length as shown in image using CSS. This is what i've tried

CSS

hr{
border-bottom: 1px dotted grey;
}

but i am unable get the same stroke length as shown in the image.

Raviteja
  • 3,399
  • 23
  • 42
  • 69
  • 1
    what is your effort? Or you want we do your homework? – Shahzad Barkati Oct 28 '15 at 12:38
  • 3
    Possible duplicate of [horizontal line and right way to code it in html, css](http://stackoverflow.com/questions/14821087/horizontal-line-and-right-way-to-code-it-in-html-css) – mikus Oct 28 '15 at 13:27

2 Answers2

1

Try the below code: Use border css property.

hr{
    border: 1px dashed #ccc;
}
<p> hello </p>
<hr/>
Shahzad Barkati
  • 2,532
  • 6
  • 25
  • 33
-1

try border-bottom : 1px dashed;

This is such an easy "google search". Do some work before you come and ask questions.

Chaze
  • 43
  • 8