font color as css
Hello!
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?
Re: font color as css
In article
<fa39f645-1b00-4352-9836-30d934296655 [at] y43g2000hsy.googlegroups.co
m>,
jodleren <sonnich [at] hot.ee> wrote:
> Hello!
>
> 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 #
--
dorayme
Re: font color as css
In article
<doraymeRidThis-66AA33.18444004122007 [at] news-vip.optusnet.com.au>,
dorayme <doraymeRidThis [at] optusnet.com.au> wrote:
> In article
> <fa39f645-1b00-4352-9836-30d934296655 [at] y43g2000hsy.googlegroups.co
> m>,
> jodleren <sonnich [at] hot.ee> wrote:
>
> > Hello!
> >
> > 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=...>
If you want all text in one element to be as one color and
another another color just class the element and set the style.
For example,
<p class="message_ok">This will be red</p>
<p class="message_fail">This will be greenish</p>
in your html
and
..message_ok {color: #ff0000; background: #fff;}
..message_fail {color: #008000; background: #fff;}
--
dorayme
Re: font color as css
"jodleren" <sonnich [at] hot.ee> wrote in message
news:fa39f645-1b00-4352-9836-30d934296655 [at] y43g2000hsy.google groups.com...
> Hello!
>
> 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; }
As dorayme says,
..message
> Then
> <font class="message_ok">Success!<font>
That last should surely be </font>
Why are you using the deprecated font element?
<p class="message_ok">Success!</p>
or even
<span class="message_ok">Success!</span>
I would think red for the fail and green for success though.
--
Richard.
Re: font color as css
"dorayme" <doraymeRidThis [at] optusnet.com.au> wrote in message
news:doraymeRidThis-3C3718.18544104122007 [at] news-vip.optusnet. com.au...
> In article
> <doraymeRidThis-66AA33.18444004122007 [at] news-vip.optusnet.com.au>,
> dorayme <doraymeRidThis [at] optusnet.com.au> wrote:
> Oops and there's more, I did not read on... You can't have <font
> class=...>
Why?
Apart from font being deprecated that is.
--
Richard.
Re: font color as css
On 2007-12-04, dorayme <doraymeRidThis [at] 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).
Re: font color as css
In article <WR75j.20113$CN4.8558 [at] news-server.bigpond.net.au>,
"rf" <rf [at] invalid.com> wrote:
> "dorayme" <doraymeRidThis [at] optusnet.com.au> wrote in message
> news:doraymeRidThis-3C3718.18544104122007 [at] news-vip.optusnet. com.au...
> > In article
> > <doraymeRidThis-66AA33.18444004122007 [at] news-vip.optusnet.com.au>,
> > dorayme <doraymeRidThis [at] optusnet.com.au> wrote:
>
> > Oops and there's more, I did not read on... You can't have <font
> > class=...>
>
> Why?
>
> Apart from font being deprecated that is.
You can have it if you close it right. I was too impatient with
the whole thing quoted... at least you mentioned the lack of a
proper closing, I was referring to the whole thing and just
wanted to give a better alternative to OP.
How am I going? I just find that I can get out of most things if
I keep talking... real fast... <g>
--
dorayme
Re: font color as css
Well bust mah britches and call me cheeky, on Tue, 04 Dec 2007 07:57:07 GMT
rf scribed:
>> 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; }
>
> As dorayme says,
> .message
>
>> Then
>> <font class="message_ok">Success!<font>
>
> That last should surely be </font>
>
> Why are you using the deprecated font element?
> <p class="message_ok">Success!</p>
>
> or even
> <span class="message_ok">Success!</span>
>
> I would think red for the fail and green for success though.
I used to be an electrician. Typically, a motor starter or motor control
switching center would have running lights on each, green for when the
device was operating and red for when it was off to the remote. Using
impeccable logic, this one corporation reversed that procedure because, in
their engineers' opinion, a running motor was dangerous while a stopped
motor was safe to inspect/work-on/etc. Whether there is any validity to
that or not, can you imagine the confusion it caused for maintenance people
and users, not to mention the actual real-life danger?
I only brought this up because somehow it reminds me of Microsoft.
--
Bone Ur
Cavemen have formidable pheromones.
Re: font color as css
In article <slrnfla3ck.lnl.spamspam [at] bowser.marioworld>,
Ben C <spamspam [at] spam.eggs> wrote:
> On 2007-12-04, dorayme <doraymeRidThis [at] 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
Re: font color as css
jodleren wrote:
> Hello!
>
> 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?
Aside from the comments on how to do that properly I have to ask:
Why red for an "ok" condition and green for a "fail" condition? Seems
counter-intuitive to me.
--
Ed Mullen
http://edmullen.net
http://mozilla.edmullen.net
http://abington.edmullen.net
How come a slight tax increase costs you two hundred dollars and a
substantial tax cut saves you thirty cents?
Re: font color as css
On Dec 3, 11:32 pm, jodleren <sonn... [at] hot.ee> wrote:
> Hello!
>
> 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?
Well for one thing, the end font tags should be closed: "</FONT>"
---
http://www.outsource2documaker.com
Managing outsourced projects ranging from fine artwork and business
graphics to website design and maintenance.
Miscellaneous » alt.html » font color as css