malachi.constant (AT) gmail (DOT) com wrote:
Quote:
Hi,
I'm creating a page with various sections using <div>, and want some
particular formatting properties to apply only in a certain section
but not the whole page (for example, in a navigation column using form
dropdowns I want to set the list menu background color but only for
lists within that <div>)
How do I define formatting within a particular section ? |
--HTML--
<div id="some_name">
<ul>
<li>foo</li>
<li>bar</li>
</u>
</div>
<ul>
<li>foo</li>
<li>bar</li>
</u>
--CSS--
#some_name ul{
background-color: lime;
}
-------
Check the different options for selectors, there is really a lot possible.
Grtz,
--
Rik Wasmus