473,654 Members | 3,068 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strange behaviour of IE 6.0 in a two column layout

I am trying to build a page with a header, 2 columns in the middle and
a footer. The left column contains the menu, the right column the real
content. Instead of giving the content column a left margin with the
width of the menu, i am giving the content column a border with the
width of the menu. (This makes life easier for me in the case that the
menu column is higher than the content column). This solution works
fine in all browsers i used for testing except IE 6.0. Surprisingly IE
gives my footer a width greter than the viewport. As a consequence the
left aligned text in the footer is not visible. Why is IE doing this?
What can i do the force IE to display my footer as intended?

The address of test page is
http://www.impotenz-selbsthilfe.de/test/ie-footer.html

Thanks for any hints!

Günther

May 5 '06 #1
10 1684
Günther Steinmetz wrote:
I am trying to build a page with a header, 2 columns in the middle and
a footer. The left column contains the menu, the right column the real
content. Instead of giving the content column a left margin with the
width of the menu, i am giving the content column a border with the
width of the menu. (This makes life easier for me in the case that the
menu column is higher than the content column). This solution works
fine in all browsers i used for testing except IE 6.0. Surprisingly IE
gives my footer a width greter than the viewport. As a consequence the
left aligned text in the footer is not visible. Why is IE doing this?
What can i do the force IE to display my footer as intended?


Nice design.

Unfortunately I've got the beta version of IE7 running on my machine
(where there's no problem by the way) so I'm doing this from memory;
I've seen it before.

Try setting the
div#foot {width:99%;}

Sorry if this doesn't help.

--
ironcorona
May 5 '06 #2
Hello,
thanks for your answer. Unfortunately setting the width to 99% made
things worse. Any other ideas?

Günther

May 7 '06 #3
Once upon a time *Günther Steinmetz* wrote:
Hello,
thanks for your answer. Unfortunately setting the width to 99% made
things worse. Any other ideas?


Talking to your self, are you. If not, then who do you say hallo to, and
thank's for what answer?

* How to quote: http://www.netmeister.org/news/learn2quote.html#toc2
* From Google: http://www.safalra.com/special/googlegroupsreply/

Google Group Users, read about The Usenet Improvement Project:
http://blinkynet.net/comp/uip5.html

--
/Arne

Proud User of SeaMonkey. Get your free copy:
http://www.mozilla.org/projects/seamonkey/
May 7 '06 #4
In article <11************ **********@j33g 2000cwa.googleg roups.com>,
Günther Steinmetz <gs********@web .de> wrote:
I am trying to build a page with a header, 2 columns in the middle and
a footer. The left column contains the menu, the right column the real
content. Instead of giving the content column a left margin with the
width of the menu, i am giving the content column a border with the
width of the menu. (This makes life easier for me in the case that the
menu column is higher than the content column). This solution works
fine in all browsers i used for testing except IE 6.0. Surprisingly IE
gives my footer a width greter than the viewport. As a consequence the
left aligned text in the footer is not visible. Why is IE doing this?
IE is doing this because it uses a different "box model" than other
browsers. If you don't know what that means, look at the CSS2 spec.
What can i do the force IE to display my footer as intended?


If you want compatibility with all browsers, then on your main
content column, you really need to set a left margin at least equal
to the width of your left-floated menu column.

At the bottom of your main column, have this before the closing /div:
<div style="clear: both">&nbsp;</div>

That will force both columns to the same height, and the footer will
then always appear beneath them.

-A
May 7 '06 #5
axlq wrote:
IE is doing this because it uses a different "box model" than other
browsers. If you don't know what that means, look at the CSS2 spec.


Really? I am using IE in standards-compliant mode (at least i think, i
do), so IE should use the same box model as other standards-compliant
browsers. Furthermore i am not giving the footer a width, margin and
padding are explicitly set to 0.

Günther

May 7 '06 #6
Günther Steinmetz wrote:
Really? I am using IE in standards-compliant mode
IE doesn't *have* a standards-compliant mode
IE should use the same box model as other standards-compliant
browsers.


It doesn't and it won't. They messed it up.

--
ironcorona
May 7 '06 #7
Günther Steinmetz wrote:
Hello,
thanks for your answer. Unfortunately setting the width to 99% made
things worse. Any other ideas?


In footl and footr you have 3px of padding set. This means that you
have an extra 12px of padding in total along the horizontal.

What is the 20em of margin-right doing in footl. You might try losing
that and seeing what happens.

Try changing the <p> of footl and footr into <div>.

footl seems unnecessary since you can just use code like this:

#foot {clear: left; background-color: #FFFB00; margin: 0; border-top:
1px solid black; padding: 0; font-size: .8em;}
#footr {float: right; width: 20em; text-align: right; margin: 0;
padding: 3px;}

<div id="foot">

Haben Sie Anregungen, Fragen, Kritik?<br>
Oder wollen Sie einfach mal mit anderen Betroffenen reden?<br>
Dann nehmen Sie <a href="/wir/kontakt.html">K ontakt</a> mit uns auf!

<div id="footr">Letz te Änderung: 3.&nbsp;Mai&nbs p;2006</div>

</div>
--
ironcorona
May 7 '06 #8
ironcorona wrote:
Günther Steinmetz wrote:
Hello,
thanks for your answer. Unfortunately setting the width to 99% made
things worse. Any other ideas?
In footl and footr you have 3px of padding set. This means that you
have an extra 12px of padding in total along the horizontal.


Yes, but in the original source i did not assign a value to width.
Therefore the padding in footl and footr shouldn't be a problem.
What is the 20em of margin-right doing in footl. You might try losing
that and seeing what happens.
footr is floating to the right side. Consequently i give footl a margin
to make sure that no text appears below the content of footr.
Try changing the <p> of footl and footr into <div>.
Didn't change anything.
footl seems unnecessary since you can just use code like this:


footl is necessary since i want its contents not to be printed.

Günther

May 7 '06 #9
ironcorona wrote:
Günther Steinmetz wrote:
Really? I am using IE in standards-compliant mode


IE doesn't *have* a standards-compliant mode

Are you saying that what MS tells me on page
http://msdn.microsoft.com/library/de...hancements.asp
about standards-compliant mode is not true? Can you please point me to
an article which shows that IE 6.0 cannot be forced into a
standards-compliant mode?

Günther

May 7 '06 #10

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

Similar topics

9
6688
by: Stephen Melia | last post by:
Hello, I've just done a redesign of website, and it's gone terribly wrong for Internet Explorer 6. I have a two column layout, and for some reason links in the right hand column cannot be clicked - it's almost as if the left column is covering the right - an attempt to click a link will select text in the left column. I've tried setting the right margin (of the left column) to 300px; but to no avail. I don't want to set the size of...
12
704
by: Robert Misiorowski | last post by:
Hello, I have a very perplexing (at least to me) problem that hopefully someone can help me with. I'm making a site with a 3 column layout. In the middle column (my fluid column) I am trying to put a table of 99% width. When I do this the table actually extends to the right over my right column and off the screen. After much debugging and trying of different things, I change this line in my code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD...
3
4593
by: Bill C. | last post by:
Hi, I've got a simple console app that just reads an XML file into a DataSet then prints out a description of each table in the DataSet, including column names and row values for each column. I'm getting some strange results depending the input XML file I use. I was wondering if somebody could help me understand what is going on or point me to a good reference. The code for my program looks like this:
3
3062
by: ckirchho | last post by:
Halo, I am trying to realize a two column layout basically like this: <html> <head> <style> leftCol { float: left; width: 15em; }
2
1279
by: niels.froehling | last post by:
Hy; I converted the tables (for _tabular_ :) data) in a project from the plain <table><tr><td></td></tr></table> structure to seperation into head/foot/body divisions (not the <div>-element). Now I get a strange behaviour in FireFox not obeying the given sizes anymore, but not in all cases. It seems that when there are elements with explicit 100%s within tbody-cells they hijack the table-sizes. I mean I would understand that when I...
23
1599
by: g.ankush1 | last post by:
#include <stdio.h> /* 1st example int a() { return 1; }
7
2138
by: ace | last post by:
Hi guys, i'm new with CSS and just recently doomed into redoing my site due to some hard to explain incident. i didn't realize the difficulty inherent in doing a 3 column CSS. in any case, i managed to do that, not exactly a full 3 column as it is as much a mod on an existing 2 column design. Frankly, i very rarely see anyone using similar layout, and haven't seen anyone implementing the same technique using CSS (most i seen use...
2
3410
by: KarlosSultana | last post by:
Hello to those who read this, this is my first ever post! I am currently getting very confused trying to put a <form> in a table-cell: Firstly I have a <div> styled with display:table -this forms the "footer" box on my page. Next I have two nested <div>s styled with display:table-cell that I want to appear side-by-side. I can put a little <p> inside each one with some text and all is well. Now what I want in the end is a <form> with...
4
2122
by: Eric Layman | last post by:
Hi everyone, Im puzzled by a NULL behaviour in SQL 2000 server. There is a column in the table that does not allow NULL. During data mining, the staff noted that, for that particular column, there are a few records that are empty. I do not specifically know whether they are "alt + 0160" character.
0
8285
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,...
0
8814
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8475
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,...
0
8591
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 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...
0
7304
agi2029
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...
1
6160
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 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...
0
4149
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...
0
4293
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2709
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

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.