Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Does anyone know how to change link color


jdice

Recommended Posts

Posted

Hello all,

 

I have a bts template so most of my changes are in stylesheet. The issue I am having...is I want my navigational bar(div.navBarContent) links to be a different than my category box links (div.infoBoxFL.).

 

I understand if you change A: color: #ffffff; ...that changes all the links on the page to the same color. I did that to change them from the traditional blue color to a green. But how do I override this...but only in one section like the div.infoBoxFL section?

 

Or is that not possible? I may just have to settle for one color for all the links...but I don't want to.

Janet

Posted
Hello all,

 

I have a bts template so most of my changes are in stylesheet. The issue I am having...is I want my navigational bar(div.navBarContent) links to be a different than my category box links (div.infoBoxFL.).

 

I understand if you change A: color: #ffffff; ...that changes all the links on the page to the same color. I did that to change them from the traditional blue color to a green. But how do I override this...but only in one section like the div.infoBoxFL section?

 

Or is that not possible? I may just have to settle for one color for all the links...but I don't want to.

Janet

In the navBarContent class in your style sheet add "color: #XXX;" to that section and it should do what you want. It will override the overall setting of the A class.

Posted
In the navBarContent class in your style sheet add "color: #XXX;" to that section and it should do what you want. It will override the overall setting of the A class.

No...it just changes the arrows in the navigational bar...not the clickable links.

 

I also tried this...A:link {color: #ffffff;}.... but it did not work either...so I am stumped on this one.

Posted

try:

 

div.navBarContent a:link, div.navBarContent a:visited {

color:#YOUR HEX

}

 

div.infoBoxFL a:link, div.infoBoxFL a:visited {

color:#ANOTHER HEX

}

SolarFrenzy

Solar powered gadgets at down to earth prices.

 

CheekyNaughty

Promoting British Design

Posted

You could create a new div in the CSS file specifically for the navigation bar.

Posted

I think you have to create two separate .css style sheets; one for navigational bar and other for category link box. This way you can easily apply different colors to both.

  • 4 years later...
Posted

If you are talking about the bar at the top which shows the path, I have changed the text colour.

Archived

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

×
×
  • Create New...