IT Community - Software Programming, Web Development and Technical Support

Multiple <li> styles in one <ul>?

This is a discussion on Multiple <li> styles in one <ul>? within the HTML, CSS and Javascript Coding Techniques forums, part of the Web Development category; Hello, I have been stumped working on this issue for about 2 days now, but havent been able to jump ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > HTML, CSS and Javascript Coding Techniques

Register FAQ Members List Calendar Mark Forums Read
  #1  
Old 06-10-2009, 02:42 PM
susanjohnyba susanjohnyba is offline
D-Web Trainee
 
Join Date: Jun 2009
Posts: 2
susanjohnyba is on a distinguished road
Default Multiple <li> styles in one <ul>?

Hello,

I have been stumped working on this issue for about 2 days now, but havent been able to jump this hurdle:

transeca.com

My navigation is dynamically created in a loop:

<ul id="glossymenu">
<li>Category</li>
<li>sub category</li>
<li>sub category</li>
<li>Category</li>
<li>sub category</li>
</ul>

If you visit the page, the first <li> is 'Pet GPS' , this is a top level category. The next top level category is all the way at the bottom called 'Test'.

Basically Im trying to assign 2 different styles a 'Category' and 'sub category', my attempt at this is using an id on only the top level <li>'s:

<ul id="glossymenu">
<li id="maincat">Category</li>
<li>sub category</li>
<li>sub category</li>
<li id="maincat">Category</li>
<li>sub category</li>
</ul>

But I dont seem to be able to override the style in this manor:

#maincat li a{
background:#000000;
}

My stylesheet:
transeca.com/css/style.css

Any advice is deeply appreciated!
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple conditions for a While statement??? pyanbrown PHP Programming 1 08-06-2009 12:54 AM
.Net Support multiple languages smithcarvo ASP and ASP.NET Programming 3 10-18-2008 01:30 AM
How can I display today's date on my home page in the following styles...? itbarota HTML, CSS and Javascript Coding Techniques 4 12-18-2007 09:50 PM
Uploading Multiple Files in ASP.NET. H2o ASP and ASP.NET Programming 3 08-08-2007 05:39 AM
multiple file selection gattuso HTML, CSS and Javascript Coding Techniques 1 08-08-2007 04:36 AM


All times are GMT -7. The time now is 06:05 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.
Our Partners
One Way Moving Companies | Stamford Dentist | Euro Millions Lottery | Home Loans| Furniture

SEO by vBSEO 3.0.0