> Rob Freundlich schrieb: >> Consider two lists: >> >> I'd like to format them such that the "Lefts" are flush-left on the >> page and the "Rights" are flush-right on the page: >> >> Left1 Left2 Left3 Right1 Right2 Right3 >>
I've been offered two approaches: On Thursday, May 12, 2005 7:32 AM [GMT+0100=CET],Ingo Chao <[EMAIL PROTECTED]> wrote: > without floats: > > ul {margin:0; padding:0; line-height:1em;} > li {display: inline;} > ul.right {text-align: right; display:block; position:relative; > top:-1em;} On Thursday, May 12, 2005 6:58 AM [GMT+0100=CET],Roman Rudenko <[EMAIL PROTECTED]> wrote: > Just don't specify the width. The "mandatory width" > requirement was dropped in CSS 2.1, and browsers deal with such floats > quite fine, too. My browser support requirements are IE 6 and Netscape 7. Both approaches work in both browsers. Given that, does either approach have an advantage over the other? Thanks, Rob ______________________________________________________________________ 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/