Michael Leibson wrote: > Hi; > > (With all the workarounds necessary for noncompliant browsers, are you really > any further ahead > than you were before CSS?) > > I've found that giving a box element absolute positioning stops its vertical > margins from > collapsing.* Any good reasons why one shouldn't use absolute positioning > everywhere that > collapsing margins is a threat? > > I've also found (sigh) that IE6 suddenly ignores paragraph margin-right when > that paragraph is > absolutely positioned (it respects all other margins, > however). What is THAT all about?? > > Here are my styles for both effects: > > > Thanks, in advance, for any help you care to share. > - Michael
Hi Michael In the long term, you will understand collapsing margins and how they are actually good. Since you have a width set for your container, it has hasLayout (for IE only), which causes the adjoining margins not to collapse. Please see <http://css-class.com/test/margins.htm> Check the examples in both IE and Firefox, to see the effects of hasLayout on the container. The second page show two containers, the outer with hasLayout, and the third page with top padding for the container. When you position a box absolutely, this itself give the box hasLayout and this causes IE6 and IE7 to not respect the right margin on your absolutely positioned paragraph. Please see <http://css-class.com/test/margins4.htm> Remember hasLayout only effects IE and when an elements gains hasLayout all types of undesired effects are seen, please see <http://www.satzansatz.de/cssd/onhavinglayout.html> Reread this several times over a few weeks and all will eventually sink in. Kind Regards, Alan ______________________________________________________________________ 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/