Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Small problem (I'm sure!)


everyth5

Recommended Posts

I have looked for information on changing text color but I DON'T want to change all the text on a page. I only want to change the text for one specific paragraph. Can anyone tell me the code to use? I have the text on the editor now and just need the code to insert. I have also looked extensively within the code and cannot find anything that helps. Tried many things.

Link to comment
Share on other sites

I have looked for information on changing text color but I DON'T want to change all the text on a page. I only want to change the text for one specific paragraph. Can anyone tell me the code to use? I have the text on the editor now and just need the code to insert. I have also looked extensively within the code and cannot find anything that helps. Tried many things.

Try this... open up your stylesheet (catalog/stylesheet.css) and add this to the bottom:

SPAN.mytext {
 font-family: Verdana, Arial, sans-serif;
 font-size: 12px;
 color: #AAAAAA;
}

where AAAAAA is the 6 digit hex code for your color.

 

Now go to your text and add the class like this:

<SPAN CLASS="mytext">Your text goes in here</SPAN>

 

HTH

~bobsi18~

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...