[BNM] [BMN] CSS conundrum. With pictures.
Ali
ali at nubz.com
Tue Apr 22 14:16:18 BST 2008
use a container div with central alignment
hth
ali
----- Original Message -----
From: "Nick Taylor" <nick at tangerineworks.com>
To: "Brighton New Media" <bnmlist at brightonnewmedia.org>
Sent: Tuesday, April 22, 2008 1:21 PM
Subject: [BNM] [BMN] CSS conundrum. With pictures.
>
>
> Ok - css query. I thought these had gone out of fashion, but apparently
> not.
>
>
> How... do you get a load of icons to float left inside a centrally
> floated thing? So if there's a load of them that stack up politely, and
> if there's only a couple, they sit in the middle.
>
> eg:
>
> http://www.weirdsky.com/icons1.gif
>
> See... they float left
>
>
> http://www.weirdsky.com/icons2.gif
>
> but when there's only a few of them they go to the centre.
>
>
> What we're doing at the moment is wrapping the whole lot in a table...
> which automatically adjusts its width to be the same as what it's
> containing. Which works like magic (for that is what it is) until you've
> got a slow connection... then everything turns into a long column.
>
> Note that the height of the containing thing is dictated by the number
> of icons... so no absolute positioning etc.
>
>
> How the feck do you do that then?
>
> There must be a sensible solution etc.
>
>
>
>
> n
> --
>
> BNM Subscribe/Unsubscribe:
> http://www.brightonnewmedia.org/options/bnmlist
>
> Archive Search - http://icanhaz.com/bnmarchive
>
> BNM powered by Wessex Networks:
> http://www.wessexnetworks.com
More information about the BNMlist
mailing list. Powered by Wessex Networks