views:

28

answers:

2
<table>
<tr>
<td class="left"><div class="c">centrated<br>on<br>lef side</div></td>
<td>middle-td</td>
<td>right-td</td>
</tr>
</table>

Here is the css:

td.left {
    width: 200px;
    left-padding: 0;
    }
div.c {
    text-align: center;
    }

Now everything is centered. I want to place the div on left side and everything inside the div should be centered. I've tried everything that I can do but I was unable to do what I want.

+1  A: 

use the float:left property on the div

Marco Mariani
A: 

EDIT: Actually, I'm not sure what you're trying to achieve. Do you want to use a table or divs?

Sam