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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
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 |
Our Partners |