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]
|