DIV tags og tabeller
på http://www.sitepoint.com/forums/printthread.php?t=206765er der en stump kode
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!-- force quirks mode in ie with the xml prologue-->
<style type="text/css">
html,body {
height: 100%;
margin: 0px;
padding: 0px;
overflow: auto;
}
body {
font-family: Verdana;
font-size: 13px;
color: #24284B;
}
/* ---------- table ---------- */
table {
width: 100%;
height: 100%;
border: 0px;
padding: 0px;
border-spacing: 0px;
font-family: Verdana;
font-size: 13px;
}
td {
padding: 0px;
border-spacing: 0px;
margin: 0px;
}
#top {
height: 76px;
width: 100%;
background-color: #CCCCCC;
}
#content {
height: 100%;
width: 100%;
}
#bottom {
padding-left: 4px;
height: 68px;
width: 100%;
background-color: #CCCCCC;
}
/* ---------- divs ---------- */
#contentRight {/* for good browsers*/
position:absolute;
top:76px;
bottom:68px;
width: 100%;
overflow: auto;
}
* html #contentRight {/* for ie only*/
position: relative;
top:0;
height: 100%;
}
</style>
</head>
<body>
<table cellspacing="0">
<tr>
<td id="top"> some content here </td>
</tr>
<tr>
<td id="content"> <div id="contentRight">
<p>lots of content </p>
<p>a</p>
<p>a</p>
<p> </p>
<p>a</p>
<p>a</p>
<p> </p>
<p>a</p>
<p>a</p>
<p>a</p>
<p> </p>
<p>a</p>
<p>a</p>
<p>a</p>
<p>a</p>
<p>a</p>
<p>a</p>
<p>a</p>
<p> </p>
<p>a</p>
<p>a</p>
<p> </p>
<p>a</p>
<p> </p>
<p>a</p>
<p>a</p>
<p>a</p>
<p> </p>
<p>a</p>
<p>a</p>
<p>a</p>
<p>a here! </p>
</div></td>
</tr>
<tr>
<td id="bottom"> some bottom content </td>
</tr>
</table>
</body>
</html>
den viser en tabel hvor man kan scrolle i midten
fint - men hvis man sætter en tabel ind i det midterste felt (inde i div tag)så fucker IE helt op!!!
hvorfor kan den ikke klare lidt udskyldigt
<table><tr><td>noget</td></tr></table>
?
