Html – How to Style an hr Tag Using CSS and HTML

csshtml

How can I style an hr tag?

#footer hr
{
    background-image: -moz-linear-gradient(left, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0)); 
}

This doesn't work in firefox. I even tried background:, but that didn't work. Is there some other way to make it work?

Best Answer

Its working you need to just use hr in div with your css id footer. As like below

<div id="footer">
   <hr />
</div>