If I have couple <div>
s within a <td>
, can I select each one?
For example i want to make the first one float left and the second float right. is it possible using just CSS?
.divE:first-child { float:left; }
.divE:last-child { float:right; }
HTML
<table id="myTbl" cellpadding="0" cellspacing="0">
<tr>
<td>
<div class="red">asdasd</div>
<div class="divE"></div>
<div class="divE"></div>
content
</td>
</tr>
</table>