Hi All,
I am trying to fix this issue with my CSS. The page is located at I get exactly what I want in FF. That is SIDEBAR is on the right side of CONTAINER, FOOTER is at the bottom (clear both), most importantly, any table inside CONTENT with width over 600px (or over 750px) can overflow to the right without changing position of SIDEBAR.
FF shows exactly what I want. IE, however, push the SIDEBAR down if the table width is larger than 550px.
Is there any easy way to fix it?
Thank you!
tofuTnT
I am trying to fix this issue with my CSS. The page is located at I get exactly what I want in FF. That is SIDEBAR is on the right side of CONTAINER, FOOTER is at the bottom (clear both), most importantly, any table inside CONTENT with width over 600px (or over 750px) can overflow to the right without changing position of SIDEBAR.
FF shows exactly what I want. IE, however, push the SIDEBAR down if the table width is larger than 550px.
Is there any easy way to fix it?
Thank you!
tofuTnT
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<div id="container" style="width:700px;text-align:left;color:#333; position:relative; text-align:left;margin:0 auto; border: 1px solid yellow;">
<div id="main" style="width:700px;border:1px solid black">
<div id="content" style=" float:left; width:550px; border:1px solid red; margin:1px">
Content <br />Content <br />Content <br />Content <br />Content <br />Content <br /><br /><br />
<table width="600px" border="1">
<tr><td>Table with width over 600px</td></tr>
</table>
Content <br />Content <br />Content <br />Content
</div>
<div id="sidebar" style="float:left; width:140px; border:1px solid blue;margin:1px">
Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />Sidebar<br />
</div>
</div>
<div id="footer" style="clear:both; width:700px; border:1px solid green;">
FooterFooterFooterFooter
</div>
</div>
<body>
</body>
</html>