HighDots Forums  

Properties that apply within a particular div only

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Properties that apply within a particular div only in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
malachi.constant@gmail.com
 
Posts: n/a

Default Properties that apply within a particular div only - 08-15-2006 , 05:07 AM






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 ?


Reply With Quote
  #2  
Old   
Rik
 
Posts: n/a

Default Re: Properties that apply within a particular div only - 08-15-2006 , 06:09 AM






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




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.