View Single Post
  #6  
Old 12-12-2005, 03:28 PM
  Stephen Hatton's Avatar 
Stephen Hatton Stephen Hatton is offline
 

Senior Member
  
Join Date: Mar 2004
Location: Melbourne, Australia
Posts: 182
 

Default

Hi Brian Peat

Alternatively turn the text into a paragraph and define it in the style sheet.

Wrap the text
Code:
<p class="YourStyleName"> {$lng.txt_welcome} </p>

and in your skin1/skin.css put the following lines:

Code:
p.YourStyleName { color: #FFFFFF; background-color: inherit } /* White */

At any time you can change the colour by changing the style sheet and the colour is definitely locked into that class.

A problem with the .Style that xcart uses is that they are global and can be used for fonts, tables, backgrounds, which then makes it very hard to change one thing without affecting many other things.

If we had slow modems all the time, then we would have to stick to the old way (lean and mean and near enough is good enough), but with ADSL and Cable Modems, that is no longer the case, and we should start to separate our titles, tables, backgrounds, etc. to take control of the looks.

Regards
Ing. Stephen Hatton
__________________
Apache Linux V1.3.33
PERL version: 5.8.0
PHP version: 4.3.11
MySQL version: 4.0.22-standard
X-cart V4.0.17: Addons: X-PConfig, X-Giftreg, X-Fancycat, X-AOM
Reply With Quote