Tags
HTML , css
Asked 3 years ago
5 Jul 2021
Views 557
Melyna

Melyna posted

How To Create Dividers in html

How To Create Dividers by HTML or css

i want to put spacing and divider between two div
so what html tag i should use ?
chirag

chirag
answered Jul 5 '21 00:00


<div style="  border-top: 3px dashed #bbb;">
&nbsp;
</div>


above html create dashed border for that div with top side , #bbb is the color of the divider line


<div style="  border-top: 3px dotted #bbb;">
&nbsp;
</div>


above html create dotted border for that div with top side , #bbb is the color of the divider line


<div style="  border-top: 3px solid #bbb;">
&nbsp;
</div>


above html create solid border for that div with top side , #bbb is the color of the divider line

you can also apply border-radius to the divider and make it round as per need
Post Answer