Answers for "how to make horizontal line css"

5

how to change the color of the hr tag in html

<style>       
    hr{
        height: 1px;
        background-color: #ccc;
        border: none;
    }
</style>
Posted by: Guest on September-02-2020
0

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);
}
Posted by: Guest on December-07-2020
2

how to make a dotted hr in css

/* hr {
  border:none;
  border-top:1px dotted #f00; 
  color:#fff;
  background-color:#fff;
  height:1px;
  width:50%;
} */
Posted by: Guest on May-25-2020

Code answers related to "how to make horizontal line css"

Browse Popular Code Answers by Language