DIV im IE mit 1px Abstand zu bottom
Felix
- html
0 Arthur Dent0 wahsaga
Hallo Leute,
ich möchte den DIV am unteren Fensterrand positionieren, im IE ist allerdings immer 1px Luft dazwischen. Warum?
Gruß,
Felix
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
</head>
<body>
<div style="position: absolute; bottom: 0px; left: 0px; width: 800px; height: 20px; background: #00FF00;">Test</div>
</body>
</html>
Hallo Leute,
ich möchte den DIV am unteren Fensterrand positionieren, im IE ist allerdings immer 1px Luft dazwischen. Warum?
hm, ich würde mal sagen, weil das div am unteren Rand des Bodies hängt und nicht am unteren Fensterrand...
Verpass dem body mal ein margin:0 (und evtl. noch padding:0)
Gruß,
Arthur D
hi,
ich möchte den DIV am unteren Fensterrand positionieren, im IE ist allerdings immer 1px Luft dazwischen. Warum?
Bug des IE AFAIK.
CSS Hack/Conditional Comments nehmen, und für den IE bottom:-1px.
gruß,
wahsaga