|
Posted by dorayme on 10/24/06 22:06
In article <slrnejrjib.24t.spamspam@bowser.marioworld>,
Ben C <spamspam@spam.eggs> wrote:
> 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.
Indeed, I have been thinking of using a table (simple as that) if
I go the way I was wanting yesterday. On reflection, it seems
silly not to for some display purposes. Your description "a
centered, shrink-to-fit container" is nice and apt.
But I am also considering another plan - you might pardon me for
diverging - where the whole width of the browser window can be
utilised for these floats unrestricted by a left navigation bar.
The wider the space, the less noticeable any uneven sides become.
In this plan, it becomes more pressing or tempting to have a
dropdown strip menu at top. There is one I like at
http://www.grc.com/menu2/invitro.htm? but it would bother me if I
could not make it work in iCab for sentimental reasons. I might
contact iCab... or the makers of the dropdown... they took some
trouble to make it comply with modern browsers.
--
dorayme
Navigation:
[Reply to this message]
|