Rufinus: CSS oder wie man die seite an den Rand bekommt....

Hallo....

gibt es ein NS gegenstück zu <body topmargin="0" leftmargin="0"> ?

Ich hab es mit CSS versucht..und zwar zwischen <head>und </head> :

<style type="text/css">
  body { margin-left:0px; margin-right:30px; margin-top:0px; margin-bottom:50px }
</style>

geht auch nciht.....woran liegt es?

  1. Hallo....

    gibt es ein NS gegenstück zu <body topmargin="0" leftmargin="0"> ?

    Probier mal mit:

    <body style="position:relative; left:-1; top:-1;">

    Also mit <div> (zm Beipiel für eine Grafikpositionierung) klappt dat! Keine Ränder, weder Links noch Oben!!!

    <div style="position:relative; left:-1; top:-1;"><img src="bild.gif"></div> ergibt dann null Ränder, null Pixellinie.

    Bis danndann

    PAF (patrickausfrankfurt)

  2. Hallo....

    gibt es ein NS gegenstück zu <body topmargin="0" leftmargin="0"> ?

    Ich hab es mit CSS versucht..und zwar zwischen <head>und </head> :

    <style type="text/css">
      body { margin-left:0px; margin-right:30px; margin-top:0px; margin-bottom:50px }
    </style>

    geht auch nciht.....woran liegt es?

    Hallo Rufinus!

    Eine vielleicht etwas andere Möglichkeit wäre z.B.

    <html style="margin-left:0px;  margin-top:0px;">

    Diese Angaben sind theoretisch möglich (laut W3-CSS1). Es hat mit dem "canvas" zu tun, also mit dem/der Bereich/Fläche auf dem/der die Browser etwas darstellen. Ob ein Unterschied da zum <body style="..."> tatsächlich gibt,  habe ich noch nicht ausprobiert.

    Grüße
    Thomas

  3. hallo, geht auch mit

    <style type="text/css"> body { margin:0px; } </style>
    aber beim nn weiss ich nicht , obs reicht... isch halt a weng doof...

    cu, gunn

  4. Hallo!

    So muesste es klappen:
    <body  topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">

    Sowohl bei IE, als auch bei NS sitze alles links oben. Wenn es nur links sitzen soll, musst du
    ein wenig mit den werten spielen.

    gruss Uwe