|
Posted by dorayme on 12/04/07 09:17
In article <slrnfla3ck.lnl.spamspam@bowser.marioworld>,
Ben C <spamspam@spam.eggs> wrote:
> On 2007-12-04, dorayme <doraymeRidThis@optusnet.com.au> wrote:
> > In article
> [...]
> >> > I dont know much about CSS, but in order to get the same colours all
> >> > the time, I try
> >> >
> >> > message_ok { color: #ff0000; }
> >> > message_fail { color: #008000; }
> >> >
> >> > Then
> >> > <font class="message_ok">Success!<font>
> >> > <font class="message_fail">Something went wrong...<font>
> >> >
> >> > But, why does this not work?
> >>
> >> There is the tiniest possible reason, a missing stop sign. Try
> >> .message_ok { color: #ff0000;} The stop is the class indicator in
> >> CSS. The id indicator is #
> >
> > Oops and there's more, I did not read on... You can't have <font
> > class=...>
>
> Why not? As far as I can see it's valid and OK and works (although using
> <font> at all is deprecated).
It is valid if the element is closed right, I was too anxious to
show OP a better way and did not stop to consider my words
carefully enough. I got a temporary fright when I saw my first
correct reply to op. Correctness frightens me and unbalances my
mind. <g>
--
dorayme
Navigation:
[Reply to this message]
|