Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How display a colored line in html?

Tags:

html

css

jsp

I'm unable to use the style-color for tag "hr". Could someone help me me to display a colored line on the my jsp page using html?

like image 720
lazyCat Avatar asked Nov 19 '14 11:11

lazyCat


2 Answers

<hr> doesnt use color, it uses border-color

like image 166
Roi Avatar answered Oct 04 '22 16:10

Roi


You can apply border-color instead of color

<style>
hr { 
    display: block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    margin-left: auto;
    margin-right: auto;
    border-style: inset;
    border-width: 1px;
border-color:red;
} 
</style>
like image 35
nikita Avatar answered Oct 04 '22 16:10

nikita