On 10/20/06, Martin Breuer <[EMAIL PROTECTED]> wrote: > Hi, > I have one div with static width and height and a dynamic content from > on to three divs with static width and height which have to be centered. > To get them in one line, I use float: left. To center them I tried > margin: 0 auto; > But it doesn't work. Margin: 0 auto OR float: left.
It shouldn't work either, if my understanding of CSS is close to correct. Floating an object removes it from the normal flow of elements so it has no reference point for centering itself to anything. There is, unfortunately perhaps, no "float: center;" rule. ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/