私はこの css コードを持っていますが、フロートが左側の列で発生していません。私のテーブルはページの中央で成長し続けています。また、左側の列はそれに応じて拡大していません。
http://jsfiddle.net/hadinetcat/E8jd3/14/
私のCSSコード
.container2 {
float:left;
width:15%;
background:#FFA500;
position:relative;
right:-0%;
}
.col1 {
float:left;
width:26%;
position:relative;
left:20%;
overflow:hidden;
height:570px;
bottom:-60px;
.footer {
border:1px solid orange;
position: relative;
padding:0px;
margin-top:-5px;
font-size:15px;
}
私のhtmlコード
<div id="header" style="background-color:#FFA500;">
<h1 style="margin-bottom:0;">Wellcome To Balhalfe Services Customer Reports</h1>
</div>
<div class="container2 ">
<div class="col1">
lililililili<br />
</div>
</div>
<div align="center">
<H2 align="center"> Report Table</H></div>
<table border="1" align="center"class="tableClass">
<tr>
<td><b>Name</b></td>
<td><b>Mime</b></td>
<td><b>Size (bytes)</b></td>
<td><b>Created</b></td>
<td><b>Download</b></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>eu contres.txt</td>
<td>text/plain</td>
<td>546</td>
<td>2013-08-22 00:06:55</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=4&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php? id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr>
<tr>
<td>1594(HA 10 AL HAALY).pdf</td>
<td>application/pdf</td>
<td>60964</td>
<td>2013-08-29 23:40:07</td>
<td><a style='text-decoration:none;'href=' get_file_work.php?id=6&company=companya'>Download</a></td>
</tr> </table>
<div class="footer" style="background-color:#FFA500;clear:both;text-align:center;">
Copyright © balhalfe services 20103-2014</div>