[BNM] [BMN] CSS conundrum. With pictures.
Alex
alex at fatdrop.co.uk
Tue Apr 22 14:14:43 BST 2008
you want them to float left if there's lots of them but be centered if
there's only a few?
*a bit confused*
Nick Taylor wrote:
> 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
>
--
http://www.fatdrop.co.uk - digital music services
http://blog.fatdrop.co.uk - music industry blog
The information contained in this message is intended for the addressee only and may contain confidential and/or privileged information. If you are not the addressee, please delete this message and notify the sender. You should not copy or distribute this message or disclose its contents to anyone.
FATDROP LTD | Registered in England and Wales | Company No. 6199983
More information about the BNMlist
mailing list. Powered by Wessex Networks