Answers for "hr color change css"

0

change the color of an hr

hr {
        height: 1px;
        background-color: #ccc;
        border: none;
    }
Posted by: Guest on February-02-2021
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
1

css hr color

hr { border: 0; border-top: 1px solid #dee2e6; }
Posted by: Guest on April-06-2021
4

how to style an hr tag

/* Red border */
hr.new1 {
  border-top: 1px solid red;
}

/* Dashed red border */
hr.new2 {
  border-top: 1px dashed red;
}

/* Dotted red border */
hr.new3 {
  border-top: 1px dotted red;
}

/* Thick red border */
hr.new4 {
  border: 1px solid red;
}

/* Large rounded green border */
hr.new5 {
  border: 10px solid green;
  border-radius: 5px;
}
Posted by: Guest on June-28-2020

Browse Popular Code Answers by Language