Page 1 of 1

Changing the color of text in Mozilla Firefox

Posted: Sat Sep 25, 2010 9:03 pm
by JackD
[text]
echo "<br><br>List Price: <strike><font color=#ff0000 size='+2'><strong>\$$List_Price</strong></font></strike>";
[/text]
Works fine in IE, changing the $List_Price display text to red from black, makes it bold, increases the size, then puts the text back to regular black... does what we want.
In Firefox, it does everything but change the color of the text to red.

Apparently, Firefox requires css to do text color changes. IE will probably accept the same css. However, we cannot find any documentation that tells us how to make a css element that will allow us to change the color on the fly. Ideally, it would be an element that would also change the bold and size.

Re: Changing the color of text in Mozilla Firefox

Posted: Sat Sep 25, 2010 9:18 pm
by Eran
CSS, which became a standard at the end of 1996, removes (supposedly) the need to use HTML tags for visual formatting. HTML should be used for structural formatting (semantics). The <font> and <strike> tags have been long since deprecated. In short, use CSS and not HTML tags to change the formatting of your text. There are countless tutorials on the web, and a very detailed documentation (/specification) at the w3 site - http://www.w3.org/TR/CSS2/

Re: Changing the color of text in Mozilla Firefox

Posted: Mon Sep 27, 2010 10:15 am
by pickle
Dude, seriously? You don't know about CSS? You really need to update your skill set. Actually, everyone you included in "we", needs to update their skill set. Do what ~pytrin suggested & look up some tutorials.