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 6 2347
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
To further the education of mankind, boclair <bo*****@bigpon d.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.
Neredbojias wrote: To further the education of mankind, boclair <bo*****@bigpon d.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
To further the education of mankind, boclair <bo*****@bigpon d.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.
Neredbojias wrote: To further the education of mankind, boclair <bo*****@bigpon d.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
To further the education of mankind, boclair <bo*****@bigpon d.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 says:
"The 'visibility' property takes the value 'collapse' for row, row group,
column, and column group elements. This value causes the entire row or
column to be removed from the display, and the space normally taken up by
the row or column to...
|
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">
<head><title>Test</title>
<style type="text/css">
#Wrapper
{
width: 750px;
|
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..
http://www.physci.org/test/chem/ptoe.html
It contains valid HTML and CSS
(checked 'moments' ago).
Am testing in IE 6 on XP. My questions..
|
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
</div>
</div>
|
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 example in IE and then in FireFox:
Table inside 1 Div:
http://hughaxton.com/NewsGroups/IE1DivTable.html
Table inside 2 Divs:
| |
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
Basically, for some tests I want to specify the height of an example
DIV element inside the BODY using percentages of the viewport height.
For this to work the BODY container should fill the viewport height
where I'm using:
|
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 property only
holds true in standards compliance mode (quirks mode firefox renders it
fine). For example, if you had the following code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
|
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 appreciate it if someone could explain
1- why MSIE 7 render this simple webpage so differently from Firefox
|
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. I read and re-read carefully the CSS 2.1 spec and I just
can not see why.
Related webpages:
http://www.gtalbot.org/BrowserBugsSection/MSIE8Bugs/MarginBottomChildNotRendered.html
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |