Alan Trick wrote: > Centering the containiner is meaningless though if it doesn't have a > fixed width (that's smaller than it's container), and if it does have > a fixed width, than it ruins the whole point of the thing, to allow > the boxes to flow depending on the size of the container. > > David Laakso wrote: >> You could center the container holding the floats using margin auto; >> however, you would not be able to center the floats within that >> container-- it's pick your poison, either float them left, or float >> them right.
You could let JavaScript handle it. As soon as the page loads, check where the rightmost float falls and adjust the width of the (centered) container accordingly. If the user doesn't have JavaScript, they'll still get the left-floated version that you're settling for anyway. Martin Lambert [EMAIL PROTECTED] ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
