You are here: Re: font color as css « HTML « IT news, forums, messages
Re: font color as css

Posted by dorayme on 12/04/07 07:54

In article
<doraymeRidThis-66AA33.18444004122007@news-vip.optusnet.com.au>,
dorayme <doraymeRidThis@optusnet.com.au> wrote:

> In article
> <fa39f645-1b00-4352-9836-30d934296655@y43g2000hsy.googlegroups.co
> m>,
> jodleren <sonnich@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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация