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

Layout issues in IE (IE ignores bottom and right)

Here is the HTML I am trying to get working. In firefox, the HTML fills
the entire window with a scrollbar in the red div. I can resize the
page and the page is still completely filled. However, when I go to
internet explorer and try it, it appears that it ignores bottom and
right and as a result does not fill the entire screen.

I would like this to work in IE the same as it does in firefox. Can
someone suggest some better styles?

<html>
<head>
<style>
#top {
position: absolute;
top: 0px;
height: 50px;
left: 0px;
right: 0px;
background: blue;
}
#left {
position: absolute;
top: 50px;
height: 100px;
left: 0px;
width: 75px;
background: green;
}
#right {
position: absolute;
top: 50px;
height: 100px;
left: 75px;
right: 0px;
background: red;
overflow: auto;
}
#bottom {
position: absolute;
top: 150px;
left: 0px;
right: 0px;
bottom: 0px;
background: yellow;
}
</style>
</head>
<body>
<div id="top">text</div>
<div id="left">text</div>
<div
id="right">textasjdncakjlsncasdcjnasdlcasdcasncasl kjcnaljkdncalksjdncalksjc
naklsjdcnajklscnlaksjdcnalkjsdcnalkjsncalskjcnalks ncalskncaslkjcnaslkjcnalsjknca
lksjcnalkscnalksjncalksjcnalksncalskncalskncalsknc ajlksncajlksdncakljscnajklsnca
jlksdnca</div>
<div id="bottom">text</div>
</body>
</html>

Jul 21 '05 #1
3 2670
Jul
go**********@scottsavarese.com avait prétendu :
Here is the HTML I am trying to get working. In firefox, the HTML fills
the entire window with a scrollbar in the red div. I can resize the
page and the page is still completely filled. However, when I go to
internet explorer and try it, it appears that it ignores bottom and
right and as a result does not fill the entire screen.

I would like this to work in IE the same as it does in firefox. Can
someone suggest some better styles?


I'm not shure about it, but you can try to set 'width: auto;' for the
right div and 'height: auto;' for the bottom one.
I guess the width of the right panel isn't extensible and so isn't the
height of the bottom one, isn't it ?

--
Jul... réapparru comme par enchantement
Jul 21 '05 #2
go**********@scottsavarese.com wrote:
Here is the HTML I am trying to get working.
1) Don't post code to the group, upload it, post the url.
2) Use real content, not bogus jibberish.
3) Validate your code before posting (HTML & CSS).
In firefox, the HTML fills
the entire window with a scrollbar in the red div. I can resize the
page and the page is still completely filled. However, when I go to
internet explorer and try it, it appears that it ignores bottom and
right and as a result does not fill the entire screen.

I would like this to work in IE the same as it does in firefox. Can
someone suggest some better styles?


1) Absolutely positioning layout boxes in the vertical plane is likely
to cause problems if the "top" box contains text. The text should not be
allowed to wrap or it will obscure the lower positioned boxes. You can
prevent this by leaving the "top" box in the flow and by not specifying
the "top" property on the lower layout boxes (defaults to "auto").
2) Abs pos layout boxes that contain text should be sized using the em
unit so that the box will expand depending on the font size.
3) Afaik IE doesn't support the "bottom" property.
4) There is a hack to get around IE's buggy support for the "right"
property http://homepage.ntlworld.com/spartan...rching_bug.htm

--
Spartanicus
Jul 21 '05 #3
Unfortunately i am unable to post the real code as my company doesn't
allow it (hence the use of oversimplified stuff). Also I didn't want to
muddy the waters with tons of javascript, text, and stuff that doesn't
relate.

I wound up going with using tables to do my layout instead of plain
divs. For the div that required scrollbars, I put a div in the table
cell and set it to width 100% and height 100% so that it used up all
the cell. While not the best solution (I would have prefered an
entirely css solution), it got the job done.

I really wish that IE would fix its CSS implementation and make it more
standards compliant.

Thanks,
Scott

Jul 21 '05 #4

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

Similar topics

4
by: Brian Horwitz | last post by:
Hi everyone, Does anyone have a link to a good site that describes how to fix table layour issues in Netscape? Right now I have a page (not published) which uses background images in table...
4
by: mercurius_1 | last post by:
I want to put text for a copyright notice into the bottom right corner of my page. When I say "bottom right," I mean that it will float there regardless of how the browser window is resized. I...
2
by: csgraham74 | last post by:
Hi guys, I ve created a web control - i want to make sure that it always sits at the very bottom of the browser screen. How can i achieve this. Ive been playing about with tables etc.. in html...
5
by: Kevin Stone | last post by:
Hi, I'm after a script that will keep a DIV in the bottom right of the visible area. Needs to work in all browsers. TIA --
4
by: Andre Majorel | last post by:
How do you align an <imgagainst the bottom-right corner of an enclosing block so that the text in the block flows around it ? <!-- Block begins here --> <p> En ce qui concerne la conjoncture...
8
by: crazychrisy54 | last post by:
Hi there I am quite new to web technologies and wondered if there is anything available so that when a large web page is opened (containing scroll bars) you are automatically scrolled down and...
2
by: JB | last post by:
Hi All, I'd like to display a "resize handle" in the bottom right corner of a form like in the windows explorer for instance (the 3 diagonal lines in the corner). Can anybody tell me how to do...
1
by: Scott Smith | last post by:
UPS World is not exporting data..there is an icon on the bottom right of computer screen that says sql server is not connected....when I click on the icon the sql server manager has no data, no...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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.