|
Posted by Ben C on 10/24/06 08:28
On 2006-10-24, dorayme <doraymeRidThis@optusnet.com.au> wrote:
[snip]
> May I rave a bit? God almighty, David Dorward is not wrong about
> centering things not being trivial, I am struggling to center a
> div in which I have a lot of little floats and I want that each
> row is centered without knowing how big anyone is going to open
> the container... The difficulty is that when there is not enough
> room on the right, they wrap to the next line and all are very
> neat but there is now a space on the right that obviously is for
> nothing.
It sounds like you want a centered, shrink-to-fit container for the
floats.
The only ways to do centered and shrink-to-fit we could come up with the
other day (see recent thread called something like "Centering a float")
are with a table or display: inline-block (or inline-table would also
work), but inline-block is not supported by FF.
[Back to original message]
|