473,473 Members | 1,923 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Layout ruined in IE for some pages...

Although all pages share the exact same structure (put together with
php on the server) some display more or less as intended on IE, while
others are totally messed up. The content div is put below all other
content. I can't really figure out why that is. Any ideas?

http://deimos.curious.be/~dusk

For example the band, main media links and main contact pages display
"correctly", while biography and news don't. I'm really puzzled by
that. I don't have any fixed width content on those pages, so that
can't be the problem.

Of course on FF/Opera all is fine.

Tia

Tommy

Sep 5 '06 #1
7 1741
TomB wrote on 05 sep 2006 in comp.infosystems.www.authoring.stylesheets:
Although all pages share the exact same structure (put together with
php on the server) some display more or less as intended on IE, while
others are totally messed up. The content div is put below all other
content. I can't really figure out why that is. Any ideas?

http://deimos.curious.be/~dusk
Try a full window in a wider screen than 1024 and it looks all right.

So you expect to many horizontal pixels.

Solution 1: do not expect that many.

Solition 2:
Enclose the whole page in a
<div style='width:1280px'>

While the number of pixels in solution 2 is extravagant as long as most
people use 1024, setting a outer div to prevent floating accidents like
this is not that bad, but for the purists among us.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 5 '06 #2

Evertjan. schreef:
Try a full window in a wider screen than 1024 and it looks all right.
Right. Never noticed that.
So you expect to many horizontal pixels.
I'm not. There is not a single bit of the code that tells the browser
how wide the "main" div should be. Hence e.g. FF having no problems
with it.

The main div should be as wide as there is space available, and then
still it is set to overflow...

Sep 5 '06 #3
On 05 sep 2006, you wrote in comp.infosystems.www.authoring.stylesheets:
Evertjan. schreef:
>Try a full window in a wider screen than 1024 and it looks all right.

Right. Never noticed that.
>So you expect to many horizontal pixels.

I'm not. There is not a single bit of the code that tells the browser
how wide the "main" div should be. Hence e.g. FF having no problems
with it.
Niks hoor, that is no valid argument.
FF and IE have different defaults for margins etc.
and the fact that a bigger window does not have the behavour
virtually proves somewhere there must be an absolute size effect.
The main div should be as wide as there is space available, and then
still it is set to overflow...
Try some debugging like:

- putting the whole thing in a fixed width div.

- surrounding the block elements with temporary borders
to see what is really happening:

<style>div {border:1px red dotted;}</style>

My

container has a width of 90%
logo.png has an absolute!!! width of 180px,
and that 180px must fit in the 10% left over.

Something like that.

Succes.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 5 '06 #4
On 4 Sep 2006 23:00:14 -0700, "TomB" <to*************@gmail.comwrote:
>Although all pages share the exact same structure (put together with
php on the server) some display more or less as intended on IE, while
others are totally messed up. The content div is put below all other
content. I can't really figure out why that is. Any ideas?

http://deimos.curious.be/~dusk

...
Of course on FF/Opera all is fine.
Well, you may be hitting a bug that I've hit a couple of times with IE.
I never found exactly what triggered it, but on putting 1px test borders
around a couple of elements it went away. So I left the borders in and
changed the colour to the same colour as the background ...

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Sep 5 '06 #5
Evertjan. schreef:
My

container has a width of 90%
logo.png has an absolute!!! width of 180px,
and that 180px must fit in the 10% left over.

Something like that.
Yeah, but in that case you have a specified width for you container. I
specify nothing. Ja, helemaal niks ;-)

Anyway, I noticed I was putting my content in two nested divs for some
reason I cannot remember. Removing the inner one solved the IE issue.
Yay.

Sep 6 '06 #6
TomB wrote on 06 sep 2006 in comp.infosystems.www.authoring.stylesheets:
Evertjan. schreef:
>My

container has a width of 90%
logo.png has an absolute!!! width of 180px,
and that 180px must fit in the 10% left over.

Something like that.

Yeah, but in that case you have a specified width for you container. I
specify nothing. Ja, helemaal niks ;-)
Not true, the image without wrelative width specification, so absolutely
180px and the 90% div width are from your(!!!) js file.

Echt waar.

Anyway, I noticed I was putting my content in two nested divs for some
reason I cannot remember. Removing the inner one solved the IE issue.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 6 '06 #7
Evertjan. wrote:
Yeah, but in that case you have a specified width for you container. I
specify nothing. Ja, helemaal niks ;-)

Not true, the image without wrelative width specification, so absolutely
180px and the 90% div width are from your(!!!) js file.

Echt waar.
Oh, the "sub" div you mean! But that's in another div without a
specified width, so that is 90% of whatever width the enclosing div
has.

Anyway, I found out what the problem is. When you put a 90% width div
in the main div and you specify a margin for that div IE does't use the
horizontal overflow when width (90%) + margin becomes too wide for the
main div.

See
http://deimos.curious.be/~dusk/gmm/case1.html
http://deimos.curious.be/~dusk/gmm/case2.html

So i reckon this is an IE bug, nietwaar?

Tommy

Sep 6 '06 #8

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

Similar topics

47
by: Neal | last post by:
Patrick Griffiths weighs in on the CSS vs table layout debate in his blog entry "Tables my ass" - http://www.htmldog.com/ptg/archives/000049.php . A quite good article.
30
by: Diane Wilson | last post by:
I'm trying (once again) to figure out how to make a robust CSS layout style that can replace tables. I'd like to be able to do a basic two-column layout, with a one-column header, a two column...
2
by: Ralph Soons | last post by:
Hi all, I am looking for a correct way to setup my website layout. For instance: I would like to have a selection mechanism (like tree or something) on the left and the page data on the right. ...
6
by: briand | last post by:
How do I make many pages with the same layout? I have created header, side bar, main body, and footer web controls and added them to a table. I have many pages that want to use this same layout,...
20
by: Alan Silver | last post by:
Hello, In classic ASP, I used to use two include files on each page, one before and one after the main content, to provide a consistent layout across a web site. That way I could just change the...
3
by: Samuel Shulman | last post by:
I am looking for good guidance for positioning controls on the form.document, it is absolute nightmare and I don't know where to begin Thank you, Samuel Shulman
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...
5
by: Ed Sproull [MSFT] | last post by:
First I'm pretty new to ASP.NET and I'm having a simple problem. I have small website with a header, sidebar and the the content. I want my content to appear beside my sidebar which seems to be a...
1
by: Scott | last post by:
I've been trying to use css stylesheets to lay out a header, a left column and a main content area using width as percentages so the layout can expand and contract with the browser. I'm using...
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...
1
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
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,...
1
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...
0
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
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...

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.