473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Unwanted white space between divs - IE6 vs NN and Opera

Can anyone help me with this - it may be obvious, but I just can't see it.

I'm working with PC and WinME. In IE6, the two divs inside the wrapping div
have no space between them, which is how I want it to be, but in NN6.2 and
Opera7.11 there's a gap between them. I've tried all the fixes I can think
of, but can't get it to work. Any help would be much appreciated.

Pared-down example: http://www.tonyturton.com/test/styletest.html
stylesheet: http://www.tonyturton.com/test/styletest.css

TIA

--
Tony T
In email address NNNN = 7 x 643

Jul 21 '05 #1
6 12138
On Tue, 26 Oct 2004 17:47:55 +0000 (UTC), "Tony T"
<bo**********@yahoo.co.uk> wrote:
Can anyone help me with this - it may be obvious, but I just can't see it.

I'm working with PC and WinME. In IE6, the two divs inside the wrapping div
have no space between them, which is how I want it to be, but in NN6.2 and
Opera7.11
Those are a couple of years old. Netscape 7.2 and Opera 7.54 are the
latest versions. However, the problem you describe is still present.
there's a gap between them. I've tried all the fixes I can think
of, but can't get it to work. Any help would be much appreciated.

Pared-down example: http://www.tonyturton.com/test/styletest.html
stylesheet: http://www.tonyturton.com/test/styletest.css


..leftpara {
margin-bottom: 10px;

Due to margin collapsing the margin of the <p> actually moves outside
the containing <div> and causes your gap. This is correct behaviour as
per the CSS spec - IE is getting it wrong.
Change margin-bottom: 10px; to padding-bottom: 10px; and all will be
well.

Steve

Jul 21 '05 #2
On Tue, 26 Oct 2004 17:47:55 +0000 (UTC), Tony T
<bo**********@yahoo.co.uk> wrote:
Can anyone help me with this - it may be obvious, but I just can't see
it.

I'm working with PC and WinME. In IE6, the two divs inside the wrapping
div
have no space between them, which is how I want it to be, but in NN6.2
and
Opera7.11 there's a gap between them. I've tried all the fixes I can
think
of, but can't get it to work. Any help would be much appreciated.

Pared-down example: http://www.tonyturton.com/test/styletest.html
stylesheet: http://www.tonyturton.com/test/styletest.css


I see a gap in IE6 when using larger text.

The paragraph element at the end of the first div is causing the problem.
Set it to

margin-bottom: 0; padding-bottom: 1em;

and see what happens.
Jul 21 '05 #3

"Tony T" <bo**********@yahoo.co.uk> wrote in message
news:cl**********@sparta.btinternet.com...
Can anyone help me with this - it may be obvious, but I just can't see it.

I'm working with PC and WinME. In IE6, the two divs inside the wrapping div have no space between them, which is how I want it to be, but in NN6.2 and
Opera7.11 there's a gap between them. I've tried all the fixes I can think
of, but can't get it to work. Any help would be much appreciated.

Pared-down example: http://www.tonyturton.com/test/styletest.html
stylesheet: http://www.tonyturton.com/test/styletest.css

TIA

--
Tony T
In email address NNNN = 7 x 643


Steve, Neal - thanks guys, the tweak works fine. I'll have to go back and
try to really understand the margin collapse thing - must admit I've rather
ignored it 'til now. Anyway, love you both (or, if your British, a firm
manly handshake to you).

TT
Jul 21 '05 #4
On Wed, 27 Oct 2004 08:12:28 +0000 (UTC), Tony T
<bo**********@yahoo.co.uk> wrote:
Anyway, love you both (or, if your British, a firm
manly handshake to you).


I'm American - how 'bout a Go Red Sox?
Jul 21 '05 #5

"Neal" <ne*****@yahoo.com> wrote in message
news:op**************@news.individual.net...
On Wed, 27 Oct 2004 08:12:28 +0000 (UTC), Tony T
<bo**********@yahoo.co.uk> wrote:
Anyway, love you both (or, if your British, a firm
manly handshake to you).


I'm American - how 'bout a Go Red Sox?


Saw them play once, back in 86 I think it was.
Jul 21 '05 #6
Neal <ne*****@yahoo.com>:

I'm American - how 'bout a Go Red Sox?


I don't know what that means (sports, politics?), but it's an anagram of
'God or Sex'---truly American indeed.

--
Axl Rose gives an even better anagram.
Jul 21 '05 #7

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

Similar topics

3
by: StopBsod | last post by:
Hello group, I use XSLT to output a unix shell script based on the content of an XML file : The XSLT : <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">...
6
by: Steve K | last post by:
Hi, The site I've just created, when tested on a windows PC has an unwanted white space (about 2-4 pixels high) in between two tables. I would like there to be zero space there. Here is the test...
17
by: Stanimir Stamenkov | last post by:
Is it possible to make two inline elements to appear adjacent stripping any white space appearing in between in the source? Example: <span class="adj">1</span> <span class="adj">2</span>...
3
by: Brian | last post by:
I have a page with content, navigation, and footer divs, in that order. The nav div has position: absolute, width 8em, on green background. The other divs have an 8em green left border, such that...
13
by: Aaron | last post by:
Hi, In the following code, everything looks fine on Explorer, but on Netscape there is a large white gap between the 'top' section and the 'bottom menu' section. I've set the style 'div img...
0
by: Mark Moore | last post by:
I'm trying to layout a couple text input fields and their corresponding labels without using a table. When I was trying to debug my understanding of CSS, I was *very* surprised to see that span's...
16
by: Uncle Pirate | last post by:
This has me stumped. I am trying to use as little space as possible at the top of my document but Firefox/Mozilla insists on placing vertical space before any element. IE displays it correctly...
3
by: skyleestar | last post by:
We've tried looking for a discussion on this but haven't found any fixes yet that seem to work. When you go to our website, www.MillbrookTack.com, in FireFox there is unwanted white space above...
3
by: Joe Stateson | last post by:
I have a template field that contains filenames that are (or can be) on a unix system. The hypen (and others) is a valid filename character in unix. When I display the name of the file I get an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
tracyyun
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...

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.