wahsaga: listenformatierung nicht verstanden?

Beitrag lesen

hi,

wird die schrift mit jedem kindelemnt kleiner, logo oder?

Ja, logo.

aber wenn ich folgendes mache:

ul li, ul li ul li, ul li ul li ul li (usw., je nach erforderlichkeit)
   {
   font-size:0.9em;
   line-height:1.1em;
   }


> sollte die schriftgröße doch bei den kindelementen erhalten bleiben.  
  
Wieso sollte sie das?  
  
Du hast jetzt zwar die ULs jeweils nicht mehr selektiert - aber für alle IL in UL, alle LI in UL in LI in UL, ... gilt immer noch: Mache die Schriftgröße 0.9em mal so groß, wie sie im Vorfahrenelement war.  
  
Was meinst du, warum em zu den \_relativen\_ (Schrift)Größenangaben zählt?  
  
<http://www.w3.org/TR/CSS21/syndata.html#value-def-length>  
"The 'em' unit is equal to the computed value of the 'font-size' property of the element on which it is used. The exception is when 'em' occurs in the value of the 'font-size' property itself, in which case it refers to the font size of the parent element."  
  
gruß,  
wahsaga  
  

-- 
/voodoo.css:  
#GeorgeWBush { position:absolute; bottom:-6ft; }