Old 12-01-2011, 05:44   #1 (permalink)
soeb
Registered User
 
Join Date: Jun 2010
Posts: 64
Multiple UL's and LI's

Could anyone tell me that how do i manage multiple ul and li thourgh css.

something like this.

HTML Code:
<ul> <li>First LI</li> <li>Secon LI</li> <li> <ul> <li>Again First</li> <li>Again Second</li> <li>Again Third</li> </ul> </li> <li>Fourth LI</li> </ul>

Please Help me Out
  Reply With Quote
Old 12-01-2011, 06:09   #2 (permalink)
Shiro
社長
 
Shiro's Avatar
 
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 14,623
Can't help if you don't tell us what you want to do.
__________________
This space for rent.

Jaypan | Ramenities
  Reply With Quote
Old 12-01-2011, 06:17   #3 (permalink)
DKuntz2
umlaut forever!
 
DKuntz2's Avatar
 
Join Date: Apr 2009
Posts: 1,870
Code:
/* targets all ul's and li's */ ul li { /* the ever awesome // do stuff */ } /* targets only ul's and li's inside of an li */ ul li ul li { /* the second best one // magics here */ }
  Reply With Quote
Old 12-01-2011, 06:18   #4 (permalink)
soeb
Registered User
 
Join Date: Jun 2010
Posts: 64
i want this to be working properly....

Quote:
#menu {margin:0px; padding:0px; list-style:none;}
#menu li {margin:0px; padding:0px; list-style-type:none; display:block; float:none;}
#menu li ul {margin:0px; padding:0px; list-style:none;}
#menu li ul li {margin:0px; padding:0px; list-style-type:none; display:inline; float:left; margin-right:20px;}
  Reply With Quote
Old 12-01-2011, 06:20   #5 (permalink)
soeb
Registered User
 
Join Date: Jun 2010
Posts: 64
thanx DKuntz2..
But please see the css which i have just posted...
  Reply With Quote
Old 12-01-2011, 06:26   #6 (permalink)
slate
Senior Member
 
slate's Avatar
 
Join Date: Feb 2010
Posts: 5,746
What is proper?

Remove all those rules, and start with ul{margin:0px;padding:0px;list-style:none;}

Provided your main ul has the id of menu, start styling your levels from selectors you currently have.
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive
vBulletin © 2000-2009 Jelsoft Enterprises Limited.
Search Engine Optimization by vBSEO 3.0.0 RC8