font color as css

font color as css

am 04.12.2007 08:32:00 von jodleren

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
Success!
Something went wrong...

But, why does this not work?

Re: font color as css

am 04.12.2007 08:44:40 von dorayme

In article
m>,
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
> Success!
> Something went wrong...
>
> 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

am 04.12.2007 08:54:41 von dorayme

In article
,
dorayme wrote:

> In article
> > m>,
> 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
> > Success!
> > Something went wrong...
> >
> > 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 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,

This will be red


This will be greenish



in your html

and

..message_ok {color: #ff0000; background: #fff;}
..message_fail {color: #008000; background: #fff;}

--
dorayme

Re: font color as css

am 04.12.2007 08:57:07 von rf

"jodleren" wrote in message
news:fa39f645-1b00-4352-9836-30d934296655@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
> Success!

That last should surely be


Why are you using the deprecated font element?

Success!



or even
Success!

I would think red for the fail and green for success though.

--
Richard.

Re: font color as css

am 04.12.2007 09:04:06 von rf

"dorayme" wrote in message
news:doraymeRidThis-3C3718.18544104122007@news-vip.optusnet. com.au...
> In article
> ,
> dorayme wrote:

> Oops and there's more, I did not read on... You can't have > class=...>

Why?

Apart from font being deprecated that is.

--
Richard.

Re: font color as css

am 04.12.2007 09:18:39 von Ben C

On 2007-12-04, dorayme 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
>> > Success!
>> > Something went wrong...
>> >
>> > 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 > class=...>

Why not? As far as I can see it's valid and OK and works (although using
at all is deprecated).

Re: font color as css

am 04.12.2007 09:54:48 von dorayme

In article ,
"rf" wrote:

> "dorayme" wrote in message
> news:doraymeRidThis-3C3718.18544104122007@news-vip.optusnet. com.au...
> > In article
> > ,
> > dorayme wrote:
>
> > Oops and there's more, I did not read on... You can't have > > 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...

--
dorayme

Re: font color as css

am 04.12.2007 10:05:32 von Bone Ur

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
>> Success!
>
> That last should surely be

>
> Why are you using the deprecated font element?
>

Success!


>
> or even
> Success!
>
> 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

am 04.12.2007 10:17:15 von dorayme

In article ,
Ben C wrote:

> On 2007-12-04, dorayme 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
> >> > Success!
> >> > Something went wrong...
> >> >
> >> > 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 > > class=...>
>
> Why not? As far as I can see it's valid and OK and works (although using
> 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.

--
dorayme

Re: font color as css

am 04.12.2007 16:58:59 von Ed Mullen

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
> Success!
> Something went wrong...
>
> 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

am 04.12.2007 17:38:13 von DocuMaker

On Dec 3, 11:32 pm, 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
> Success!
> Something went wrong...
>
> But, why does this not work?


Well for one thing, the end font tags should be closed: "
"

---
http://www.outsource2documaker.com
Managing outsourced projects ranging from fine artwork and business
graphics to website design and maintenance.