I prefer working with CSS-based design, but like more code, my CSS skills are a little weak. When I go in for layout, I tend to return to table-based formatting because my mind has been distorted by years of table-based abuse. There is one specific problem that I always travel with. What is the best CSS alternative:
<table width="100%">
<tr>
<td align="center">
content goes here
</td>
</tr>
</table>
I sometimes use:
<div style="width:100%; text-align:center">content</div>
But that does not seem right. I am not trying to align text, I am trying to align content. Also, this seems to affect the alignment of the text of the private elements, which needs to be fixed to fix it. The only thing I don’t understand is: why is there no float: center style? It seems like this would be a better solution. Hope I missed something, and there is a perfect CSS way for this.