XHTMLforum

XHTMLforum (http://xhtmlforum.de/index.php)
-   CSS (http://xhtmlforum.de/forumdisplay.php?f=73)
-   -   body margin-top:xxxpx dennoch div oberhalb platzieren möglich? (http://xhtmlforum.de/showthread.php?t=42802)

luw 05.11.2006 20:29

body margin-top:xxxpx dennoch div oberhalb platzieren möglich?
 
guten abend

ich bin mal wieder auf der suche nach rat

ich habe in meiner css datei im body bereich
margin-top:xx%; deklariert.

Dadurch beginnen natürlich alle Divs (titelzeile/menü/content) erst bei margin-top:11%;

Grafiken kann ich ja problemlos oberhalb der margin-top mit position:absolute positionieren.

Doch kann ich auch texte oberhalb dieser 11% marke in einem Div positionieren? Ohne, dass ich die anderen div's neu positionieren muss. Und auf das body margin-top auf 0 setzen muss.

Gibt es also eine Möglichkeit für ein einzelnes div das margin zurückzusetzen?

ich hoffe, dass mein problem halbwegs versändlich ist.

Ich will also auf einer CSS seite auf 5,4% top etwas platzieren habe aber body margin-top auf 11% wehshalb das nicht geht.

gruß und dank

lukas
*e*
achja height des bodys ist auf 80%

mazzo 06.11.2006 09:29

warum guibts Du dem body margin-top wenn dies für die DIVs darin gelten soll? Entweder wäre padding für body sinnvoll oder ein margin für die betroffenen DIVs.


Alle Zeitangaben in WEZ +2. Es ist jetzt 07:49 Uhr.

Powered by vBulletin® Version 3.8.11 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

© Dirk H. 2003 - 2023