Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Font color


jasonj04

Recommended Posts

Posted

Ok so I am having an issue I changed the background on the base tables on the sides and now the fonts are still black but the background is black as well. I can't find the color section in any of the jquery's or stylesheets.. Anyone know where that is?

Posted

You should not be changing any of the default .css files.

 

Best practice is to create a NEW .css file, call it in the template_top file, ensuring that the call to it is BELOW the existing stylesheet call.

 

Now insert css into the new stylesheet and any you have can be overwritten.

 

eg:

 

in stylesheet.css

 

.black {
 color: black;
}

 

"the text is black."

 

in the new stylesheet;

 

.black {
  font-weight: bold;
}

 

"the text is now black and bold"

 

similarly

 

in the new stylesheet

 

.black {
  color: red;
  font-weight: bold;
}

 

"the text is now red and bold"

Posted

I have the original .css files in folder on my computer but I have altered it a lot and just gone line by line testing to see what it actually changes.. I just don't see where it has the line for the font color in those tables.

Posted

@@jasonj04

 

As @@burt suggested, best is you leave the default stylesheet.css file in peace

 

Then, you can create a new css file, call it like "my_styles.css" or "kuku.css" or whatever, upload it to folder /catalog/ (same place where your existing stylesheet.css is) and link it in file catalog/includes/template_top.php. Just make sure you include it after stylesheet.css

 

Once this is done, you can add anything you want into there

 

For example, for font colour, you can add

 

body{color:#f00} /*(all text color)*/

a{color:#00ff00} /*(all links color)*/

 

You can be as specific as you like, depending on what part of the website you want to style

Archived

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

×
×
  • Create New...