Ashura: * Angabe in CSS-Datei

Beitrag lesen

Hallo Steve.

In der Datei steht:

  • {margin:0%;padding:0%;}

html,body {top:0%;right:0%;left:0%;min-height:100%;width:100%;}

  
Ohne eine vom Wert `static`{:.language-css} abweichende [position](http://de.selfhtml.org/css/eigenschaften/positionierung.htm#position) sind die top-, right- und left-Eigenschaften hier absolut überflüssig. Das min-height ist ebenso nutzlos, da der IE dies bis heute nicht versteht. Und eine Breite von 100 % ist für die Elemente html und body sowieso Standard.  
  

> Warum schreibt man dann nicht:  
>   
> ~~~css

* {margin:0%;padding:0%;top:0%;right:0%;left:0%;min-height:100%;  

>   width:100%;}

Weil dies ebenso sinnfrei wäre.

Gruß, Ashura

--
Selfcode: sh:( fo:) ch:? rl:( br:^ n4:& ie:{ mo:) va:) de:> zu:) fl:( ss:| ls:[ js:|
30 Days to becoming an Opera8 Lover -- Day 19: Notes
Meine Browser: Opera 8.01 | Firefox 1.0.4 | Lynx 2.8.3 | Netscape 4.7 | IE 6.0
[Deshalb frei! - Argumente pro freie Software]