CSS frage

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/css_frage_116786/page_1 - zur Vollversion wechseln!


CROWLER schrieb am 10.06.2004 um 13:31

wie kann ich einen table ohne abstand zum browsertop positioniern (ist ja immer ein kleiner abstand vom eigendlichen websiteanfang umd dem browserfenster)


tomstig schrieb am 10.06.2004 um 13:36

Code: PHP
body{
  margin-top: 0px;
  margin-left: 0px;
}

hth


CROWLER schrieb am 10.06.2004 um 13:47

thx!


Rektal schrieb am 10.06.2004 um 16:28

Es gibt Browser die haben anstatt eines "margin" auch/oder "padding". X-Browser also:

Code:
body {
  margin: 0;
  padding: 0;
}


moidaschl schrieb am 10.06.2004 um 17:55

also wär die sicherste variante:

Code: PHP
body {
 margin-top: 0px;
 margin-left: 0px;
 padding: 0;
}
??


Rektal schrieb am 10.06.2004 um 18:05

Um deine Frage mit Background-Info zu beantworten, die folgenden Ausdruecke sind alle equivalent:

Code:
margin: 0;

margin: 0 0;

margin: 0 0 0;

margin: 0 0 0 0;

margin-top: 0;
margin-right: 0;
margin-bottom: 0;
margin-left: 0;
Wobei ohne explizite -top/-right/-bottom-/left Angaben gilt:

ein Wert -> alle vier
zwei Werte -> top/bottom , left/right
drei werte -> top, right, bottom
vier werte -> top, right, bottom, left

Das gilt auch fuer padding und border.


tomstig schrieb am 12.06.2004 um 12:08

Zitat von Rektal
zwei Werte -> top/bottom , left/right

und wer entscheidet das? :confused:


watchout schrieb am 12.06.2004 um 12:27

Zitat von tomstig
und wer entscheidet das? :confused:
das w3c?
hier zb: http://www.w3c.org/TR/CSS1#margin


btw: drei werte -> top, right, bottom
stimmt nicht ganz...
drei werte -> top, left/right, bottom
stimmt :)


Rektal schrieb am 12.06.2004 um 12:35

Ops :/




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2026