2 replies [Last post]
Swafnil
Offline
newbie
Wegberg, Germany
Last seen: 17 years 15 weeks ago
Wegberg, Germany
Timezone: GMT+1
Joined: 2003-06-17
Posts: 2
Points: 0

Hi,

I use several themes on my homepage (driven by Postnuke) and now realized that some problems occur when users use <font color="..."> in their posts. Just to mention one example: yellow text on my dark background looks pretty good but when used with my desert style theme, you won't see anything (here's an example: http://www.ars-aventuris.de/?theme=Khom - Nasty text).
How could I put some css into my stylesheet to exchange i.e. yellow to red? Or should I simply redefine <font> in my css to always have it in one color?
Thanks for your replies!

Sascha

dJomp
dJomp's picture
Offline
Enthusiast
Last seen: 4 years 34 weeks ago
Joined: 2003-03-23
Posts: 422
Points: 0

changing specific font colors

I'd define a few different SPAN classes, for example:
SPAN.quote { color : yellow; }
then obviously in the desert theme you change yellow:
SPAN.quote { color : red; }
Finally, in the HTML, rather than using
<font color="yellow">blah blah</font> you use <span class="quote">blah blah</span>

Hope that helps!

You know you're a geek when you try to shoo a fly away from the monitor with your cursor.

Swafnil
Offline
newbie
Wegberg, Germany
Last seen: 17 years 15 weeks ago
Wegberg, Germany
Timezone: GMT+1
Joined: 2003-06-17
Posts: 2
Points: 0

GREAT! Thank you!

Hi dJomp!

that works great! Thank you!

Sascha