R
Ryan Stewart
I'm tinkering with the whole tableless layout idea, but can't even figure a
good way to get a basic centered box on the screen. How do you do this
without a table:
<table style="margin-right: auto; margin-left: auto; border: 2px solid
#333399;">
<tr>
<td style="padding: 15px 30px;">
Some table content.
</td>
</tr>
</table
If you use a div, you have to specify a width, else it's a block element and
takes up 100% width. That's a bad idea because the font size may vary, and
there can be dynamic content in the box anyway. What element will
automatically wrap to minimum width like a table?
good way to get a basic centered box on the screen. How do you do this
without a table:
<table style="margin-right: auto; margin-left: auto; border: 2px solid
#333399;">
<tr>
<td style="padding: 15px 30px;">
Some table content.
</td>
</tr>
</table
If you use a div, you have to specify a width, else it's a block element and
takes up 100% width. That's a bad idea because the font size may vary, and
there can be dynamic content in the box anyway. What element will
automatically wrap to minimum width like a table?