472,978 Members | 2,118 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,978 software developers and data experts.

Margin Collapse problem in Opera and perhaps Foxfire

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
May 10 '06 #1
6 2313
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
May 10 '06 #2
To further the education of mankind, boclair <bo*****@bigpond.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.

--
Neredbojias
Infinity has its limits.
May 10 '06 #3
Neredbojias wrote:
To further the education of mankind, boclair <bo*****@bigpond.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
May 10 '06 #4
To further the education of mankind, boclair <bo*****@bigpond.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.

--
Neredbojias
Infinity has its limits.
May 11 '06 #5
Neredbojias wrote:
To further the education of mankind, boclair <bo*****@bigpond.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
May 11 '06 #6
To further the education of mankind, boclair <bo*****@bigpond.net.au>
vouchsafed:
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/


I can understand some reasons for margin-collapse, but was never
particularly a fan of it. Perhaps if it defaulted to "off" it would be
more proper.

--
Neredbojias
Infinity has its limits.
May 12 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jukka K. Korpela | last post by:
I have noticed that the meaning of visibility: collapse has been discussed on different forums, but with no consensus on what it really means. Besides, implementations differ. The specification...
5
by: Mike Irwin | last post by:
Here's the test page: <!doctype html public "-//w3c//dtd xhtml 1.0 strict//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">...
12
by: Andrew Thompson | last post by:
I am developing a Periodic Table of the Elements as<DIV>s ..(chuckle - just kidding!) a <TABLE> at http://www.physci.org/test/chem/, or rather, the table itself is.....
19
by: Thomas Mlynarczyk | last post by:
Hello, The following gives different results in IE and "Non-IE" browsers: <div style="background-color: green; width: 200px"> <div style="margin-top: 20px; background-color: red"> Hello...
10
by: tbcarver | last post by:
I have a table that I am trying to add a bottom margin to in IE. I have found that if the table is inside more than 1 div then the shape of the containing div collapses. Please look at this...
2
by: Stanimir Stamenkov | last post by:
I'm trying to clear some sizing issues relative to the initial containing block and the root document element. The sample document I'm trying with: http://stanio.info/viewport_fill.html ...
1
by: jason.m.ho | last post by:
Has anyone run into the problem of firefox 'border-collapse: collapse' rendering a table 1-pixel too far to the left? In IE and Opera it will render fine...Does anyone know if this is a bug? This...
2
by: GTalbot | last post by:
www.authoring.html] Hello fellow HTML and markup coder colleagues, Please visit this url: http://www.gtalbot.org/BrowserBugsSection/DefaultTopBottomMarginsForPargDisappear.html I would...
7
by: GTalbot | last post by:
Hello fellow authoring.stylesheets colleagues, Can someone please explain why the bottom margin of the last inflow block-level child in an overflowed parent should not have its margin reachable....
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.