Topic: Please help: html table width 100% problem
My test.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<style>
body {font: 11px Verdana,Tahoma;margin: 0;padding: 0;}
#body_wrap {padding: 10px;}
#page_header {clear: both;}
#page_footer {clear: both;}
#main_left {clear: left;float: left; width: 170px;}
#main_right {float: right;width: 150px;}
#main_content {margin: 0 160px 10px 180px;}
#page_header, #main_left, #main_right {margin-bottom: 10px;}
#main_left .box, #main_right .box {margin-bottom: 20px;}
.classlist {padding: 5px;}
#body_wrap, #page_footer, #page_header, #main_content, .box, .tbl {border: 1px solid #000000;}
#body_wrap table {font-size: 1em;width: 100%;}
.classlist {vertical-align: top;}
.tbl th {background-color: #dff1f1;}
.tbl th, .tbl td {border-left: 1px solid #000000;padding: 4px 6px;}
.tbl .coll {border-left: none;}
.title {color: #658655;font: bold 1.6em Tahoma;margin: 0.5em;}
</style>
<div id="body_wrap">
<div id="page_header">Header</div>
<div id="main_left">
<div id="l_menu">
<ul>
<li><a href=#>Item1</a></li>
<li><a href=#>Item1</a></li>
<li><a href=#>Item1</a></li>
<li><a href=#>Item1</a></li>
</ul>
</div>
</div>
<div id="main_right">
<div id="r_recenttopic" class="box">
<div class="box_header">asasf</div>
<div class="box_content">adfas</div>
</div>
<div id="r_recenttopic" class="box">
<div class="box_header">asasf</div>
<div class="box_content">adfas</div>
</div>
<div id="r_recenttopic" class="box">
<div class="box_header">asasf</div>
<div class="box_content">adfas</div>
</div>
<div id="r_recenttopic" class="box">
<div class="box_header">asasf</div>
<div class="box_content">adfas</div>
</div>
</div>
<div id="main_content">
<div class="title">Danh sach lop</div>
<div class="classlist">
<table class="tbl" cellspacing="0">
<thead>
<tr>
<th class="coll" scope="col">STT</th>
<th scope="col">Ten</th>
<th scope="col">Ngay sinh</th>
<th scope="col">lop</th>
</tr>
</thead>
<tbody>
<tr>
<td class="coll">asdas</td>
<td>asdasd</td>
<td>dasdsa</td>
<td>assad</td>
</tr>
<tr class="evenrow">
<td class="coll">asdas</td>
<td>asdasd</td>
<td>dasdsa</td>
<td>assad</td>
</tr>
<tr>
<td class="coll">asdas</td>
<td>asdasd</td>
<td>dasdsa</td>
<td>assad</td>
</tr>
<tr class="evenrow">
<td class="coll">asdas</td>
<td>asdasd</td>
<td>dasdsa</td>
<td>assad</td>
</tr>
<tr>
<td class="coll">asdas</td>
<td>asdasd</td>
<td>dasdsa</td>
<td>assad</td>
</tr>
<tr class="evenrow">
<td class="coll">asdas</td>
<td>asdasd</td>
<td>dasdsa</td>
<td>assad</td>
</tr>
<tr>
<td class="coll">asdas</td>
<td>asdasd</td>
<td>dasdsa</td>
<td>assad</td>
</tr>
</tbody>
</table>
</div>
</div>
<div id="page_footer">footer</div>
</div>
</body>
</html>
There's a space above the table
:FlashGet:TCPOptimizer:SPECTralSMTPServer:UniExtract:PSPad:uStart:Everest:
:TotalCommander:ProcessExplorer:DriveMan:Regshot:Restoration:UPX:KolorGenerator:
:OpenOffice:AutoHotkey:IrfanView:Winamp:FSCapture:CDex:PNGOptimizer:spam: