Thanks for the clarification! Elli V
--- Gunlaug Sørtun <[EMAIL PROTECTED]> wrote: > Elli Vizcaino wrote: > > I was just wondering if this syntax is correct: > > > > #content {position: relative; > > float: left; > > width: 954px; > > border-top: 1px solid #162581;} > > That's a perfectly fine way to solve the problem at > hand. > > > You're simply doing several, separate, things > with/on the same element, > and the properties/values you have used do *not* > exclude each other. > > - containment of floats - 'float: left'. > Floats will expand to contain floating children > in accordance with > rules for 'block formatting context'[1]. > > - positioning of container - 'float: left'. > Floats do position themselves in accordance with > float rules[2]. > > - establishing a relationship for absolute > positioned child - > 'position: relative'. > Relative positioning[3] can be used to offset > elements - even > floating ones, and/or to establish a relationship - > a base - for A:P > children. > > > There are other ways to achieve the same, but they > are no better than > the solution you have now, IMO. > > regards > Georg > > [1]http://www.w3.org/TR/CSS21/visuren.html#q15 > [2]http://www.w3.org/TR/CSS21/visuren.html#floats > [3]http://www.w3.org/TR/CSS21/visuren.html#relative-positioning > -- > http://www.gunlaug.no > ______________________________________________________________________ > 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/ > My Sites: www.jadynteal.com www.eliazer.com www.e7flux.com ____________________________________________________________________________________ Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL ______________________________________________________________________ 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/