hr all width css code example

Example 1: html horizontal line style

<!-- HTML -->

<!-- You can change the style of the horizontal line like this: --> 

<hr style="width:50%", size="3", color=black>  


<!-- Or like this: -->

<hr style="height:2px; width:50%; border-width:0; color:red; background-color:red">

Example 2: how to make hr class bootstrap full width

/* It is done with the <hr> tag. Then you need to give it a class name, and adjust the margin accordingly. See below for an example. 
  */

.solid {
  margin: 0 -15px;
  border: 0;
  border-top: 1px solid #c9c7c7;
}

Tags:

Css Example