...

View Full Version : tables across from eachother..not under



velious
02-10-2004, 08:40 PM
this is makin me mad...I cant seem to make a tables that are across from eachother..every time i make a new table, it goes under the first one even though i did not make a line break..does anyone know?.

coothead
02-10-2004, 09:09 PM
Hi there velious,

Try it like this...


<html>
<head>

<style type="text/css">
table{float:left;}
td{width:100px;height:100px;border:solid 1px #000000;}
</style>

</head>
<body>

<table><tr>
<td>left</td>
</tr></table>
<table ><tr>
<td>right</td>
</tr></table>

</body>
</html>


c:cool::cool:thead

rmedek
02-11-2004, 03:06 AM
or, if you want to do it the wrong, outdated way, you could put a big table around the whole shebang. One table goes in the first <td> and one goes in the other.
<table>
<tr>
<td>
<table>...</table>
</td>
<td>
<table>...</table>
</td>
</tr>
</table>Not recommended, but it'll work...

-Rich



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum