snakehips2000
Programmer
Can someone please tell me why this doesn't work?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
#maindiv {
position: relative;
border: thin ridge #666666;
text-align: center;
}
.divclubs {
float: left;
clear: right;
width:228px;
text-align:center;
}
.tblclubs {
margin: 0 auto;
margin-left:4px;
border:none;
width:228px
}
</style>
</head>
<body>
<div id="maindiv">
I want the three DIVs listed below to appear side by side in this containing DIV but they are below it! Why?
<div class="divclubs">
<table class="tblclubs">
<tr>
<td><a href="#" id="club4" onclick="">four</a></td>
</tr>
</table>
</div>
<div class="divclubs">
<table class="tblclubs">
<tr>
<td><a href="#" id="club5" onclick="">five</a></td>
</tr>
</table>
</div>
<div class="divclubs">
<table class="tblclubs">
<tr>
<td><a href="#" id="club6" onclick="">six</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
#maindiv {
position: relative;
border: thin ridge #666666;
text-align: center;
}
.divclubs {
float: left;
clear: right;
width:228px;
text-align:center;
}
.tblclubs {
margin: 0 auto;
margin-left:4px;
border:none;
width:228px
}
</style>
</head>
<body>
<div id="maindiv">
I want the three DIVs listed below to appear side by side in this containing DIV but they are below it! Why?
<div class="divclubs">
<table class="tblclubs">
<tr>
<td><a href="#" id="club4" onclick="">four</a></td>
</tr>
</table>
</div>
<div class="divclubs">
<table class="tblclubs">
<tr>
<td><a href="#" id="club5" onclick="">five</a></td>
</tr>
</table>
</div>
<div class="divclubs">
<table class="tblclubs">
<tr>
<td><a href="#" id="club6" onclick="">six</a></td>
</tr>
</table>
</div>
</div>
</body>
</html>