Phil Wilson wrote:
> I have an unordered list with four elements. I'd like to align them > horizontally, with each list-item taking up 25% of the screen (or > their container). > > I would have thought this was quite simple, and produced > http://philwilson.org/code/tests/horizontallist.html which renders > fine in Firefox and Opera, but in IE the last list-item wraps to the > next line. > > Can someone tell me either where my code is wrong, or which IE bug I'm > suffering from? I'm sure I've done this before, so there must be a > workaround. > > Many thanks, > > Phil Phil- You're not doing anything wrong, IE is. Actually, if you resize your browser window you will see that IE actually sometimes redraws the boxes correctly, and sometimes pushes the last box down. Its because IE can't quite figure out the final width to base the 25% on. Take a look at the following page for a more concise explanation and possible solutions. http://positioniseverything.net/explorer/percentages.html regards, Ron ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
