473,382 Members | 1,258 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,382 software developers and data experts.

IE6 Layout drop problem

Hi,

I have an intranet page which will be used by IE users only, primarily
IE6 users.

The problem is with the two column layout I have is that if there's a
wide element in the main content of the page which is wider than the
size of the window, the wide content drops to the bottom of the page.
Can anyone assist with a simple way to overcome this? Thanks in
advance.

HTML posted below:

+++++++++++++++++++++++++++++++++++++++++++++

<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html;
charset=iso-8859-1" />
<title>My IE layout drop problem</title>
<style type="text/css">

#Main
{
width:100%;
height:auto;
}

#Header
{
height: 33px;
line-height: 11px;
background-color:cyan;
height: 12px;
}

#LargeHeader
{
padding: 17px 0px 0px 2px;
height: 55px;
border-style: none;
border-width: 0px 0px;
background-color:blue;
}
#Menu
{
float:left;
top:130px;
left:0px;
width:140px;
height:440px;
padding:5px;
padding-bottom: 32767px;
margin-bottom: -32767px;
background-color: pink;
}

#Content
{
width:auto;
margin: 0 0 0 155px;
padding:5px;
background-color:yellow;
}

#footer {
background-color: aqua;
clear: both;
border: 1px solid #aaaaaa;
padding: 0.5em 0.5em 0.5em 0.5em;
text-align:center;
font-size:smaller;
}
</style>

</head>

<body leftmargin="0" topmargin="0">

<div id="Header">
Small Header
</div>

<div id="LargeHeader">
<h1>Large header</h1>
</div>
<div id="Main">

<div id="Menu">

Menu goes down here.

</div>

<div id="Content">

This is some content ...

<table width=900><tr>
<td>CellInAWideTableCellInAWideTable CellInAWideTable
CellInAWideTable</td>
<td>CellInAWideTableCellInAWideTable CellInAWideTable
CellInAWideTable CellInAWideTableCellInAWideTable</td>
</tr></table>
</div>

</div>

<div id="footer">

Footer Text

</div>
</body>
</html>
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++

May 3 '07 #1
1 3046
jo****@gmail.com wrote:
Hi,

I have an intranet page which will be used by IE users only, primarily
IE6 users.

The problem is
You just told us the problem. Heh. Just kidding.
with the two column layout I have is that if there's a
wide element in the main content of the page which is wider than the
size of the window, the wide content drops to the bottom of the page.
Can anyone assist with a simple way to overcome this?
If you will permit a somewhat exaggerated analogy, this is like saying,
"When I breathe, oxygen comes into my lungs and carbon dioxide goes out.
How can I overcome this?"

The answer to both is that it's supposed to work that way, so there's
nothing to overcome. Floated elements are supposed to, well, float.

From http://www.w3.org/TR/CSS21/visuren.html#floats:
<q>If there isn't enough horizontal room for the float, it is shifted
downward until either it fits or there are no more floats present.</q>

The wide content is your content, and you've made it wide. What do you
want the browser to do with your content? You say <table width=900and
the browser believes you. Make it 60% or 40em and see if you like the
difference.

What's so bad about the browser doing the dropping anyway? Does the
content lose meaning? If not, then consider letting nature take its
course. Relax. Go with the flow. Mellow out. Peace, man.

--
John
May 3 '07 #2

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

Similar topics

24
by: delerious | last post by:
Hi, I am designing a web site that will that showcase a bunch of vacation pictures. It will have a banner and a navigation menu (consisting of 13 rectangular images that can be clicked). I am...
44
by: lime | last post by:
I've been using CSS for a while, however always using tables for the layout. This is my first go using a CSS only layout. After many versions (about 7 of them) this is the final version that I...
4
by: Kerry Sanders | last post by:
I was playing around with a new Windows form yesterday. I wanted to drop two panels on the form. The first would be set Dock=Top. The second would be set Dock=Fill. So, I dropped the first...
7
by: David Veeneman | last post by:
I'm just getting started with ASP.NET in Visual Studio 2005. The last web work I did involved ASP 3.0 in FrontPage. I've been through the MSDN tutorials on creating web pages, but not of them...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
3
by: Daniel | last post by:
Hey guys, I last made a site using Asp.net in vis studio 2003. Now in 2005 and .net 2 i want to make anothe rbut i cant get the layour working. Before i used to make eveyrhting position...
2
by: jaimebienlesfruits | last post by:
Hi guys, I'm a newbie at PHP. For the past few weeks, I've been trying to work a on PHP layout/template and creating a dynamic site, so that the pages look something like...
1
by: gatorade | last post by:
Drop Down list in a form is breaking layout of the page in FireFox. Here is the page in question: http://www.redchip.com/visibility/RCinstitutional-Requestinfo.asp The layout is simply two...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.