Discussion: 2nd List Doesn't Work
Afficher un message
Vieux 31/03/2008, 06h45   #5
Michael R. Copeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: 2nd List Doesn't Work

> > The following code doesn't work as I want, because the 2nd list
> > doesn't appear as a "list" (no bullets) and requires the <br> after each
> > item to appear as a vertical list of items.

>
> > li {display:inline}
> > li.list {margin-left: 60px}

>
> Have a very carefull think about what the first of the above two rules does.


I did, and I tried to have 2 distinct "li" declarations: li.menu and
li.list. When I did so, it destroyed the "li" that manipulates my
horizontal menu at the top of the page (the "display:inline"
declaration), and I wound up with a bulleted vertical list of the menu
items. I couldn't figure out a way to declare 2 "li" types, and I had
to revert to the posted code (which at least handles my menu list).
<sigh>
To respond to your answer, does it mean that the first rule applies
to _all_ "li" rules - and that the second is a subset of it? If so, how
_do_ I declare 2 separate and different rules for the "li"/"ul" sets
that do different things (other than what I tried)? TIA
  Réponse avec citation
 
Page generated in 0,04701 seconds with 9 queries