Previous Message
Next Message

[css-d] floating and widths... again...

Sent by Dunstan Orchard on 23 June 2002 18:06


Howdy,

Considering that the code below involves floated elements, do I need 
to specify a width for the tables? Or for the div? Or for nothing?

I currently don't have a wdith specified and it seems to work ok in 
IE6, NS7, OP6.

-----------------------------------------
.tablecontainer table {
	float: left;
	position: relative;
	margin: 0px 10px 10px 0px;
}



<div class="motorimagecontainer">

<table>
<tr>
<td>item 1</td>
<td>item 2</td>
<td>item 3</td>
<td>item 4</td>
</tr>
</table>

<table>
<tr>
<td>item 1</td>
<td>item 2</td>
<td>item 3</td>
<td>item 4</td>
</tr>
</table>

</div>
-----------------------------------------

thanks very much - dunstan

___________________________

Dorset, England
Previous Message
Next Message