Jump to content

Archived

This topic is now archived and is closed to further replies.

DONSA

Change hr color

Recommended Posts

DONSA

Hi,

How can I change the hr code?

 

I tried this, without success:

hr {
    color: #EEB200;
}

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Simplest way is to give a the hr a class. That way you can still use the default hr too.

For example:

 

<hr class="hr-red">

 

Then add the following to your custom CSS:

 

.hr-red { border-bottom: 1px solid #F00; }
 
You can do this for all colors or just add your own like so:
 
.hr-blue { border-bottom: 1px solid blue; }
 
Then replace the hr-red with hr-blue in your HTML.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×