Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old August 15th, 2006, 10:55 AM
malachi.constant@gmail.com
Guest
 
Posts: n/a
Default Properties that apply within a particular div only

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 ?

  #2  
Old August 15th, 2006, 11:55 AM
Rik
Guest
 
Posts: n/a
Default Re: Properties that apply within a particular div only

malachi.constant@gmail.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


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,248 network members.