Source code |
|
1 2 3 |
div { margin-top:11.5px; } |
This post has been edited 1 times, last edit by "Neo" (Mar 31st 2010, 11:38pm)
Quoted
4.3.1 Integers and real numbers
Some value types may have integer values (denoted by <integer>) or real number values (denoted by <number>).
Quoted
4.3.2 Lengths
...
The format of a length value (denoted by <length> in this specification) is a <number> (with or without a decimal point) immediately followed by a unit identifier (e.g., px, em, etc.).
This post has been edited 2 times, last edit by "Bastian" (Apr 1st 2010, 9:42am)
Source code |
|
1 2 3 4 5 6 7 |
#bg { margin: 0 0 0 0.5px; /* the 0.5px left margin fixes the FF 3.0.x rounding problem with centered background images */ padding: 0; background-image: url(background.jpg); background-repeat: no-repeat; background-position: center top; } |
Folgendes habe ich mal machen müssen, weil Firefox 3.0.x leicht anders rundet als alle anderen Browser: