Reputation: 2437
Can I say that
position: relative;
does not work with <td>
? http://jsfiddle.net/nX7T6/
Upvotes: 1
Views: 986
Reputation: 1728
Create div tag inside of td and style the dive tag as
posiotion:relative
<style>
td div{
position: relative;
border: 1px solid #000;
width: 10px;
height: 20px;
}
span.data{
position:absolute;
top:2px;
left:2px;
background-color#ffffff;
}
</style>
HTML
<table>
<tr>
<td>
<div>
<span class='data'>Position absolute</span>
</div>
<td>
<td>
<div>
Normal
</div>
<td>
</tr>
</table>
Upvotes: 0