PDA

View Full Version : scroll again



angiras
Feb 13th, 2003, 01:05 PM
if you look at this code it works perfectly as I want for IE 6, and not at all for Mozilla (the last) and Opera 7

I get a scroll into the second TD like with frameset

<?xml version="1.0" encoding="iso-8859-1"?>
<!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
<title>div_scroll</title>
<style type="text/css" rel="stylesheet">
body
{
margin:0px;
padding:0px;
background-color:#ffeedd;
color:#000066;
overflow:hidden;
}
#tout
{
background-color:#ffeedd;
width:100%;
height:100%;
}
#header
{
height:32px;
background-color:#ffeedd;
color:#000066;
border:1px solid #000066;
}
#corps
{
background-color:transparent;
color:#000066;
height:auto;
text-align:left;
vertical-align:top;
}
#footer
{
height:32px;
background-color:#ffeedd;
color:#000066;
border:1px solid #000066;
}
#corpsContenu
{
display:inline;
width:100%;
height:100%;
overflow:auto;
}
</style>
</head>
<body>
<table id="tout">
<tr>
<td id="header">HEADER</td>
</tr>
<tr>
<td id="corps">
<div id="corpsContenu">BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />BODY<br />
</div>
</td>
</tr>
<tr>
<td id="footer">FOOTER</td>
</tr>
</table>
</body>
</html>

what is wrong for Mozilla and Opera ?
I really don't understand what they are waiting for ?

thak you