473,405 Members | 2,160 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,405 software developers and data experts.

Vertical white gap in IE6 - How to get rid of it?!

The example: Example. And the code again down this post.

There is a vertical gap (assumable 3px) between the MENU & CONTENT and MENU & HEADER. The layout shows perfectly in IE7 / FF2 etc. Just IE6 remains a problem.

So I am stuck... Been reading about the 3px problem, but somehow this does not work for me, as I am NOT using <P> or any images either. Also tried to set a negative margin or padding, does not work either.

Any help is appreciated! (Also if this means I have to change my CSS totally).
Thanks in advance!

[HTML]
html, body {
height: 100%;
margin: 0;
padding: 0;
}

body {
background: #810D1A;
overflow: -moz-scrollbars-vertical;
}

div#container {
position: absolute;
top: 50%;
left: 50%;
height: 600px; /*ie*/
width: 950px;
margin-top: -300px;
margin-left: -475px;
border: 1px #000000 solid;
}

/* Header */
div#header {
background-color: #9400D3;
width: auto;
height: 20px;
margin-right: 0;
border-bottom: 1px solid black;
}

/* Footer */
div#footer {
float: left;
clear: both;
background-color: Red;
width: auto;
height: 20px;
overflow: hidden;
}

/* Ambient Image */
div#vibes {
float: left;
width: 300px;
height: 100%;
background: white;
}

/* Menu */
div#menu {
float: left;
width: 130px;
height: 100%;
background-color: Green;
border-left: 1px solid black;
border-right: 1px solid black;
overflow: hidden;
}

div#content {
background-color: #FFD700;
width: auto;
height: 100%;
margin-right: 0;
}
[/HTML]

[HTML]
<div id="container">
<div id="vibes">Vibes</div>
<div id="header">Header</div>
<div id="menu">Menu</div>
<div id="content">Content</div>
<div id="footer">Footer</div>
</div>
[/HTML]
Jul 3 '07 #1
0 2207

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: Markus Ernst | last post by:
Hi I have a strange problem with vertical-align. The case can be viewed at http://www.brainput.info/geschichte.html. HTML code: <div id="bild"><img src="geschichte.gif" width="274"...
5
by: Applebrown | last post by:
Hello, basically, I'm just learning intermediate CSS and trying to convert my old table webpage completely to CSS. Hoorah, right? Well, it's not quite going as planned. It's an extremely simple...
7
by: Griff Miller | last post by:
Please see http://home.houston.rr.com/gmiller15/css/vertprob.html . In mozilla 1.6/1.7 it looks the way I want it, with a thin separation between the two boxes. In IE6, the two boxes touch, which...
4
by: Nicholas | last post by:
Hi I've set up a vertical css based menu using the hover property the problem is that the hover colour only covers the text. so if menu item 1 is 'this is menu item 1' that gets covered ...
13
by: Egil Helland | last post by:
I am trying to create a breadcrumb with both icons and text, looking like: Home > Trail > Trail Now, how on earth do I get the images and text to vertically align so that the vertical...
3
by: lolo | last post by:
hello. happy new year. I'm trying to build a website for my wife and she is adament on having a horizontal thumbnail scrolling div. great. I have a good vertical scrolling thing, but can't...
3
by: acunnon | last post by:
I am trying to put together an login page my problem is getting the three items aligned to the middle verticaly without specifing a height to anything on the page. CSS html{ height:100%;...
0
by: rahullko05 | last post by:
i have designed a menu list program in which i'm facing a problem where the last li item (white crappie) shifts down when i hover mouse pointer to just above li item (ozrack bazz) of white crappie...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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...
0
isladogs
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...

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.