Hi there juparis,
here is your page, with the <br>'s, float:left
and some deprecated code removed
I did not get rid of the tables, as I know how attaced you have become to them
It also now validates HTML 1.0 strict again
Code:
<!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>
<title>//Test (div problems)</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<base href="http://www.juparis.x3fusion.com/"/>
<script type="text/javascript">
//<![CDATA[
function showHide(el,id) {
if(el.checked==true) {
document.getElementById(id).style.display="block";
}
else {
document.getElementById(id).style.display="none";
}
}
//]]>
</script>
<style type="text/css">
<!--
body {
color:#009933;
background-color:#000000;
margin:0px;
padding:0px;
}
.bar{
height:15px;
font-size:12px;
margin-bottom:7px;
}
#red {
background-color:red;
width:57px;
}
#blue {
background-color:blue;
width:42px;
}
#silver {
background-color:silver;
width:99px;
}
#div1 {
clear:both;
width:200px;
height:20px;
border:dashed 1px #0F0;
margin:7px auto;
display:none;
}
#right {
text-align:right;
}
table {
border:1px solid #00ff00;
width:350px;
margin:auto
}
td {
border: 0px;
}
.head {
border: 1px dashed #006633;
text-align:center;
width:200px;
}
a,h1,h2,.imp {
font-family: Maiandra GD, Abadi MT Condensed Light, Tempus Sans MS;
}
h1,h2 {
color:#000099;
display:inline;
}
h1 {
font-size:16px;
}
h2 {
font-size:14px;
}
span {
font-size:12px;
color:#999999;
}
.imp {
color:#003399;
font-size:19px;
width:400px;
margin:auto;
text-align:center;
}
a:link, a:visited {
color:#00ff00;
text-decoration:none;
font-size:12px;
}
a:hover {
color:#00cc33;
text-decoration:underline;
font-size:12px;
}
a:active {
color:#009966;
text-decoration:underline overline;
font-size:10px;
}
hr {
color:#00ff00;
height:1px;
width:50px;
}
form {
display:inline;
}
.graph {
border-top:0px ;
border-left: 1px solid #fff;
border-bottom: 1px solid #fff;
border-right:0px;
height:50px;width:100px;
vertical-align:bottom;
}
//-->
</style>
</head>
<body>
<div id="right"><img src="commons/controversy.GIF" alt="" /></div>
<div class="imp">
<ul>
<li>A recent update in Internet Explorer 6.0 may block the JavaScript function on this page.
Be assured it is harmless and cannot affect your computer.</li>
</ul>
</div>
<table ><tr>
<td colspan="2">
<table class="head"><tr><td>
<h1>Batteries</h1></td>
</tr></table></td>
</tr><tr>
<td><h2>Duracel</h2></td>
<td rowspan="3" class="graph">
<div class="bar" id="red"></div>
<div class="bar" id="blue"></div>
<div class="bar" id="silver"></div></td>
</tr><tr>
<td><h2>Energizer</h2></td>
</tr><tr>
<td><h2>Off-Brand ("Heavy Duty")</h2></td>
</tr><tr>
<td>
<form action="#">
<div>
<input onclick="showHide(this,'div1')" type="checkbox"/>Show Details...
</div>
</form>
</td>
</tr></table>
<div id="div1">centered div</div>
</body>
</html>