HighDots Forums  

Margin Collapse problem in Opera and perhaps Foxfire

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Margin Collapse problem in Opera and perhaps Foxfire in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
boclair
 
Posts: n/a

Default Margin Collapse problem in Opera and perhaps Foxfire - 05-10-2006 , 06:04 AM






I have been approached over a page that has a horizontal menubar
displaying over a banner. The problem advised that the menubar is not
displayed and the banner moves up to the position the menubar would
otherwise occupy. I don't see this in my version of Foxfire but I do
see it in my Opera browser.

A reduced demo is at http://www.boclair.com/margin-test/

I would think this is a collapsing margin problem. Declaring a nominal
height on the div containing the menubar appears to solve the problem on
my Opera.

Using the zoom property in lieu of height did not adjust the display in
Opera.

I could do with advise on this.

Louise

Reply With Quote
  #2  
Old   
boclair
 
Posts: n/a

Default Re: Margin Collapse problem in Opera and perhaps Foxfire - 05-10-2006 , 06:44 AM






boclair wrote:
Quote:
I have been approached over a page that has a horizontal menubar
displaying over a banner. The problem advised that the menubar is not
displayed and the banner moves up to the position the menubar would
otherwise occupy. I don't see this in my version of Foxfire but I do
see it in my Opera browser.

A reduced demo is at http://www.boclair.com/margin-test/

I would think this is a collapsing margin problem. Declaring a nominal
height on the div containing the menubar appears to solve the problem on
my Opera.

Using the zoom property in lieu of height did not adjust the display in
Opera.

I could do with advise on this.

Louise
Rather than the height property, I have now used the padding property to
stop margins collapsing.

Louise


Reply With Quote
  #3  
Old   
boclair
 
Posts: n/a

Default Re: Margin Collapse problem in Opera and perhaps Foxfire - 05-10-2006 , 07:16 PM



Neredbojias wrote:
Quote:
To further the education of mankind, boclair <boclair (AT) bigpond (DOT) net.au
vouchsafed:

boclair wrote:
I have been approached over a page that has a horizontal menubar
displaying over a banner. The problem advised that the menubar is
not displayed and the banner moves up to the position the menubar
would otherwise occupy. I don't see this in my version of Foxfire
but I do see it in my Opera browser.

A reduced demo is at http://www.boclair.com/margin-test/

I would think this is a collapsing margin problem. Declaring a
nominal height on the div containing the menubar appears to solve the
problem on my Opera.

Using the zoom property in lieu of height did not adjust the display
in Opera.

I could do with advise on this.

Louise
Rather than the height property, I have now used the padding property
to stop margins collapsing.

Louise

I agree with your conclusion, -a collapsing margin problem. (Btw,
excellent demo/display of problem!) What I think happens/matches spec is
that the bottom margin of div.menu collapses into the top margin without
the padding or height declaration because all of the content is floated.
Whether the top-margin of the div below collapses, also, I dunno, but it
should be easy enough to tell from the dimensions.

Of course. I should have seen that.

The containing div doesn't have anything to give it in-flow content.
The links are all floated. Any in-flow content for the div containing
the menubar would do, padding, border, a non broken space , a dot etc

thanks Louise


Reply With Quote
  #4  
Old   
boclair
 
Posts: n/a

Default Re: Margin Collapse problem in Opera and perhaps Foxfire - 05-11-2006 , 12:20 AM



Neredbojias wrote:
Quote:
To further the education of mankind, boclair <boclair (AT) bigpond (DOT) net.au
vouchsafed:

The containing div doesn't have anything to give it in-flow content.
The links are all floated. Any in-flow content for the div containing
the menubar would do, padding, border, a non broken space , a dot etc

thanks Louise

That's how I saw it, and 'welcome.

While not expecting consistent displays from the various browsers, the
differences caused me to rethink the margin collapse solution.

1.. The floated links in the menubar should have been cleared after the
containing menubar containing div.
2.. The clearing div should have content to meet the specs. This can be
a non broken space.
3.. The spacing between the menubar and the banner can be set by
declaring a font-size.

I have added another page using this method accessible from
http://www.boclair.com/margin-test/

Louise


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.