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 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]


Удаленная работа для программистов  •  Как заработать на 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

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