DMN
01-21-2013, 10:10 PM
Hi all, I have created a table using HTML Unordered List and CSS. The problem I am having is that I cannot get rid of the gaps on the right and left of the table. Please take a look at my HTML markup and CSS below:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
</title>
<style >
body{margin: 0;padding:0;background-color:white}
#Page{margin:0 auto; width:1366px;}
#Bottom{width:100%;height:266px;}
#BottomLeft{float:left;width:80%;height:266px;background-color:orange;margin:0}
#BottomLeft ul{list-style:none;width:100%}
#BottomLeft li{width:120px;height:120px;list-style-type:none;float:left;margin:3px}
#BottomLeft ul li a{width:120px;height:120px;list-style:none;display:block;
text-decoration:none;background-color:blue;vertical-align:top;margin:0 5px 5px 0;color:red}
#BottomRight{float:left;width:20%;height:266px;background-color:blue;}
#Footer{top:0;clear:left;width:100%;height:25px;background-color:black;}
</style>
</head>
<body>
<div id="Page">
</div id="Bottom">
<div id="BottomLeft">
<ul>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">1hvhjbob bhbohbp vgovohggv bhjhhbhb</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">2</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">3</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">4</a></li>
</ul>
<ul>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">1hvhjbob bhbohbp vgovohggv bhjhhbhb</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">2</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">3</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">4</a></li>
</ul>
</div>
<div id="BottomRight">
</div>
</div>
<div id="Footer">
</div>
</div>
</body>
</html>
Any suggestions on how to fix this problem will be greatly appreciate, thanks for your help.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
</title>
<style >
body{margin: 0;padding:0;background-color:white}
#Page{margin:0 auto; width:1366px;}
#Bottom{width:100%;height:266px;}
#BottomLeft{float:left;width:80%;height:266px;background-color:orange;margin:0}
#BottomLeft ul{list-style:none;width:100%}
#BottomLeft li{width:120px;height:120px;list-style-type:none;float:left;margin:3px}
#BottomLeft ul li a{width:120px;height:120px;list-style:none;display:block;
text-decoration:none;background-color:blue;vertical-align:top;margin:0 5px 5px 0;color:red}
#BottomRight{float:left;width:20%;height:266px;background-color:blue;}
#Footer{top:0;clear:left;width:100%;height:25px;background-color:black;}
</style>
</head>
<body>
<div id="Page">
</div id="Bottom">
<div id="BottomLeft">
<ul>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">1hvhjbob bhbohbp vgovohggv bhjhhbhb</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">2</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">3</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">4</a></li>
</ul>
<ul>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">1hvhjbob bhbohbp vgovohggv bhjhhbhb</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">2</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">3</a></li>
<li><img src="Images/Sample.jpg"></li>
<li><a href="#">4</a></li>
</ul>
</div>
<div id="BottomRight">
</div>
</div>
<div id="Footer">
</div>
</div>
</body>
</html>
Any suggestions on how to fix this problem will be greatly appreciate, thanks for your help.