Reply to Re: [CSS] Quickie: Is it possible to have child Class under ID ?

Your name:

Reply:


Posted by Spartanicus on 08/21/06 16:35

"Steve Kostecke" <spamtrap@ntp.isc.org> wrote:

>Say I have a <div id="content"> for the main content column, and within
>that column, I have several items, ie <div class="item"> (each would be
>some sort of article of sorts.)
>
>In the CSS say I have #content { ... }
>
>Why is it I cannot have #content.item { ... }

That matches a div with a "content" id and a "item" class (<div
id="content" class="item">).

What you are looking for is a descendant selector construct, to create
that you need to insert a space: #content .item{...}

http://www.w3.org/TR/CSS21/selector.html

--
Spartanicus

[Back to original 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

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