line horizontal css code example
Example 1: how to change the color of the hr tag in html
<style>
hr{
height: 1px;
background-color: #ccc;
border: none;
}
</style>
Example 2: html horizontal line style
<hr style="width:50%", size="3", color=black>
<hr style="height:2px; width:50%; border-width:0; color:red; background-color:red">
Example 3: custom hr in css
<hr class="style-two">
/* Inset */
hr.style-two {
border: 0;
height: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}