Posted by Jim Moe on 12/05/06 19:06
rudicheow@gmail.com wrote:
>
> 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 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.
>
Drop the use of single-celled tables altogether. (Sounds like a biology
project.) There is no need to float the images or their containers.
Simply list the images in the parent table cell and set the cell's
justification attribute to "center". Place a space between <img>'s so they
will wrap within the cell.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Navigation:
[Reply to this message]
|