Wouldn't this work?
ul li ul li {};
Or, easier yet...
li.first {};
<li class="first"></li>
Am I trying to make it too simple and ignoring something?
Mike
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2008 11:58 AM
To: [email protected]
Subject: [css-d] menu bar
Sad to say I'm using a unnamed product to help me build a menu for a site.
I am trying to add padding to one of my list items without affecting the
other list items and can not solve the problem due to my own ignorance.
This is what a sample of my code looks like:
<TD width="25%" height="45" align="left" valign="top"><ul id="MenuBar1"
class="MenuBarVertical">
<li>
<div align="center"><a href="#">Untitled Item</a></div>
</li>
<li>
<div align="left"><a href="#" class="MenuBarVertical">Untitled
Item</a></div>
</li>
<li><a href="#" class="MenuBarItemSubmenu">Untitled Items</a>
<ul>
<li><a href="#">Untitled Item</a></li>
<li><a href="#">Untitled Item</a></li>
<li><a href="#">Untitled Item</a></li>
</ul>
</li>
The padding for this item is controlled thru this css rule:
ul.MenuBarVertical a
{
display: block;
cursor: pointer;
padding: 0.75em;
color: #FFFFFF;
text-decoration: none;
background: #006799;
}
Can anyone please give me a suggestion on how to make a new rule that would
allow me to give only the first list item more padding without affecting the
others list items controlled by this rule? Thanks in advance for your help,
Tommy
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/