Hallo ihr,
ich möchte ein div auf 100% Höhe des Browsers bringen. Bekanntlichermaßen ist das bei Browsern momentan noch nicht problemlos möglich. Aus diesem Grund mache ich das per JS. Dabei stehe ich jetzt vor folgendem Problem:
im Body befindet sich ein Div das rot eingefärbt ist. Man sieht jetzt das die Browser rundherum einen weißen Abstand lassen, den man per body einfärben kann. FireBug zeigt mir an das der Body margin-Werte von 8px hat, Jedoch ist das feld body.style.marginTop etc. leer. Woher bekomme ich die 8px? Denn man kann die ja per CSS beeinflussen, von daher kann ich die 8 nicht hardcoden (was eh unsauber wäre).
besten Dank im Voraus
Heiko