468,238 Members | 2,037 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,238 developers. It's quick & easy.

table within a floating div

Hi there, would really appreciate your help on this one. The code
below renders how i want it to on IE7 and Firefox and i'd it like to
render the same way in IE6 where I'd like the table floats left of the
sidebar and scrolls horizontally across the page. Unfortunately the
div that contains the table clears to the bottom of the div sidebar in
IE6. If anyone could give me some pointers or directions, I'd
appreciate it very much. Thanks in advance.

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>floatingtable test</title>

</head>

<body >
<div style="float: left; border: 1px dotted aqua; width: 99%;">

<div style="float: left; width: 200px; height: 200px; border: 1px
solid red;">
</div>
<div style="float:left; height:300px; width: 400px;border: 1px solid
blue;">
<table style="width: 100%" border="1" bordercolor="pink">
<tr>
<td>ReallyReallyReallyReallyReallyReallyReallyReal lyLongText</td>
<td>ReallyReallyReallyReallyReallyReallyReallyReal lyLongText;</td>
<td>ReallyReallyReallyReallyReallyLongText</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>ReallyReallyReallyReallyReallyReallyReallyReal lyLongText;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td>ReallyReallyReallyReallyReallyLongText</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>ReallyReallyReallyReallyReallyLongText</td>
</tr>
<tr>
<td>ReallyReallyReallyReallyReallyLongText</td>
<td>ReallyReallyReallyReallyReallyReallyReallyReal lyLongText</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>ReallyReallyReallyReallyReallyReallyReallyReal lyLongText</td>
</tr>
</table>

</div>

</div>
</body>

</html>

May 1 '07 #1
0 3177

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by ewu | last post: by
1 post views Thread by Eric | last post: by
61 posts views Thread by Toby Austin | last post: by
1 post views Thread by patelbrijeshn | last post: by
8 posts views Thread by Gianni Rondinini | last post: by
7 posts views Thread by Allie | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kermitthefrogpy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.