|
Posted by Harlan Messinger on 12/05/06 15:34
rudicheow@gmail.com wrote:
> SHORT VERSION
> =============
>
> I have a bunch of identical fixed-size single-celled tables that rest
> against each other horizontally thanks to "float:left". These tables
> are dynamically generated and the number of them can vary greatly. They
> are all contained within a parent table cell, which is centred on the
> page. But I am unable to find a way of centering these table cells
> within the parent cell.
>
> I basically need to be able to have fixed-size image containers stacked
> horizontally (which is why I use float:left), but to have those centred
> (which float:left negates).
>
> I've tried DIVs, and the behaviour is the same. Any ideas? Thanks.
Yes, do use DIVs, not one-celled tables.
To align the inline content *within* a block, use text-align: center.
Navigation:
[Reply to this message]
|