You are here: Re: is this css legal ? « HTML « IT news, forums, messages
Re: is this css legal ?

Posted by Jonathan N. Little on 10/06/06 20:23

richard wrote:
>
> "NoWhereMan" <nowhereman@PLEASEDONTSPAMMEdespammed.com> wrote in message
> news:1jysbvn2ek2zn.1xm11nkjtugck$.dlg@40tude.net...
>> are these css selectors legal ?
>>
>> .storycontent > p:first-child:first-letter{
>> font-size: 6em;
>> color: #bc0f09;
>> font-family: Georgia, Times, 'Times New Roman', serif;
>> float: left;
>> padding: 0.1em;
>> }
>>
>> .storycontent > p:first-child:first-line{
>> font-variant: small-caps;
>> font-size: 1.3em;
>> }
>>
>> looks like syntactically valid (the w3c validator says it is) but is it
>> legal ?
>>
>> firefox interprets this as I suppose it should; opera does not :(
>
> What's with the > before p?
> The only time > should be used is to denote a tag.
> <tag></tag>
>

RTFM, http://www.w3.org/TR/CSS21/selector.html#child-selectors

Disregard richard...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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