Michael Leibson wrote:

>> . . . IE6 suddenly ignores paragraph margin-right when that paragraph is
>> absolutely positioned (it respects all other margins,
>> however).  What is THAT all about??

>Alan Gresley responded:
> . . . 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>

>. . . 
>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


Thanks for taking this time, once again, Alan -- I appreciate it!

I can see -- and understand -- what's happening in the two URLs you've 
furnished, but 
the terminology and references in the onhavinglayout.html article will 
definitely 
take a few weeks to sink in ;-)

In the meantime -- since I'm trying to get my web pages online -- can you (or 
anyone else)
recommend a reliable workaround for what must surely be a very common problem 
-- ie, 
how to get IE6 to properly respect margins when using absolute positioning?   
I'm 
surprised that I wasn't able to find anything relating to this particular 
problem anywhere via Google
(lots on using 'clear' with floats, but nothing on restoring proper margins, 
etc, 
when using absolute positioning in IE).

All the best,
Michael



















      Ask a question on any topic and get answers from real people. Go to 
Yahoo! Answers and share what you know at http://ca.answers.yahoo.com
______________________________________________________________________
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/

Reply via email to