473,804 Members | 3,085 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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">text asjdncakjlsncas dcjnasdlcasdcas ncaslkjcnaljkdn calksjdncalksjc
naklsjdcnajklsc nlaksjdcnalkjsd cnalkjsncalskjc nalksncalskncas lkjcnaslkjcnals jknca
lksjcnalkscnalk sjncalksjcnalks ncalskncalsknca lskncajlksncajl ksdncakljscnajk lsnca
jlksdnca</div>
<div id="bottom">tex t</div>
</body>
</html>

Jul 21 '05 #1
3 2700
Jul
go**********@sc ottsavarese.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**********@sc ottsavarese.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
1767
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 cells for the background image on the page. In IE it looks fine, but in NS the image goes all over the place and even duplicates in one part. the top part of the image goes on for way too long (as opposed to only 100 pixels which is where it should...
4
11985
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 _think_ that what I have so far works well for this positioning purpose: <p class="copyright">All materials on this website &copy; Copyright 2005</p>
2
1679
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 but moving the vertical align affects all other controls tables etc. on the screen. basically can i force a control or table to be at the bottom of the screen ???
5
9582
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
5253
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 qui nous occupe, il est nécessaire d'imaginer l'ensemble des problématiques déjà en notre possession. Où que nous mène la sinistrose de cette fin de siècle, il ne faut pas négliger d'examiner la
8
2301
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 right to the contents within the bottom right hand corner of the page. Any ideas if this is possible and if so how would be very much appreciated
2
3158
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 that? Thanks JB
1
1480
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 server info...nothing. Is this sql server what is preventing UPS World from working correctly?
0
9704
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9130
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
7608
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
6844
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5503
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
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
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
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2975
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.