Answers for "how to make a line in 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
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
3

line through in css

x {
  text-decoration: line-through;
}
Posted by: Guest on September-11-2020
16

horizontal line html

<!-- code -->

<hr>

<!-- code -->
Posted by: Guest on February-18-2020

Code answers related to "how to make a line in css"

Browse Popular Code Answers by Language