You are here: Re: Centering left-floated items - how? Please help! « HTML « IT news, forums, messages
Re: Centering left-floated items - how? Please help!

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация