Answers for "hr css color"

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
3

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">
Posted by: Guest on July-26-2020
1

css hr color

hr { border: 0; border-top: 1px solid #dee2e6; }
Posted by: Guest on April-06-2021
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

Browse Popular Code Answers by Language