Hello everybody… Thanks for taking a look at this…
I’m designing a page that has a leveled unordered list as the navigation system (loads of content…) I know this has probably been asked, but I’ve tried googling and searching this site, and can’t seem to find what I need…
How can I control the indentations with the multiple levels using CSS? Using a margin-left doesn’t get rid of the indentation, but does nothing but add to it… text-indent isn’t doing it either… I’d much rather not split the thing up into loads of divs…
If you just want to change the left space of your items, add " .level2{margin-left: 0; padding-left: 0;}" for example in your style part (margin for IE, padding for FF).
If it doesn’t answer your question, please give an example of your needs.
As Linn saids padding is used for the default indentation in firefox and margin is used in ie therefore setting both to zero will align all the lists left.
To address styles in sublists you don’t need extra classes as you can simply use specifity to target them and keep your sub-lists class free.
e.g.