Seite 1 von 1
CSS:absolut pos. div größer als browser=>IE scrollt nicht
Verfasst: 27.12.2004, 16:22
von easore
Hallo zusammen,
ich habe eine absolut positionierte div box, die größer ist als das browser fenster.
z.b. 700px hohe box wird im browser bei einer auflösung von 800 x 600 angeschaut, die box hat content, firefox stellt scrollbars zur verfügung, ie nicht und schneidet den inhalt einfach ab!
jemand eine idee?
danke im vorraus!
Verfasst: 27.12.2004, 16:56
von HW
..hast Du den irgendwo ein overflow-hidden drin?
Poste doch mal den Code des Style Sheets.
Man kann auch als Trick eine 1pixel große Grafik mit der entsprechenden width einbauen. Das nutze ich schon mal um eine min-width im IE zu garantieren.
Verfasst: 27.12.2004, 17:16
von easore
Code: Alles auswählen
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test</title>
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td class="dot">.</td><td width="600"><div id="1" style="position:relative; border: 1px solid black;">
<div id="2" style="position:absolute; top:100px; left:100px; width:20px; border: 1px solid black;">
con ten t con ten t con ten t con ten t con ten t con ten t con ten t con ten t con ten t con ten t con ten t con ten t
</div>
</div></td><td class="dot">.</td></tr></table>
</body>
</html>
Die Tabelle habe ich zum zentrieren verwendet, und die div box id 1 um von ihr aus absolut positionieren zu können.
genau das ist das problem, der ie richtet sich beim scrollen nur nach der tabelle oder der box 1 und die haben für den wohl keinen content....
firefox (pc): einwandfrei
safari (mac): problem!
ie (mac): einwandfrei
ie (pc): problem!
wunderbar, nicht wahr....
