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?
<hr>
doesnt use color, it uses border-color
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With