3 replies [Last post]
zatalian
Offline
newbie
Last seen: 16 years 45 weeks ago
Timezone: GMT+1
Joined: 2004-01-21
Posts: 2
Points: 0

Hi,

I'm new to this forum and new to css so i hope this question isn't asked over and over again. I tried looking for a similar question but didn't find an answer.

Here's my problem :

http://users.pandora.be/elian.lievens/new/test3.html

What I want is a fixed header (red) and a fixed footer (blue) and the green center should adjust between the 2. So i can't use height:xxx%.
What i did was

top: 160px
bottom: 30px

This works fine for all linux browsers i have, but with IE i only have a small green band instead of the full region.

Does anybody have a solution for this?

Thanks in advance

Stu
Stu's picture
Offline
Enthusiast
Bristol uk
Last seen: 16 years 45 weeks ago
Bristol uk
Joined: 2004-01-20
Posts: 282
Points: 0

layout problem with IE

You could add the following to the #main

height:100%;
background:#0d0;

Then you would not need the background color in your #center

Your border CSS will cause the 'main' div to exceed 100% though, so you will get a small vertical scroll. Although funnily enough Mozilla doesn't give one.

It's not what you do it's the way that you do it.
So do it with STYLE
http://www.s7u.co.uk

zatalian
Offline
newbie
Last seen: 16 years 45 weeks ago
Timezone: GMT+1
Joined: 2004-01-21
Posts: 2
Points: 0

layout problem with IE

I'm sorry, but that is not a solution to my problem.
Let me show you why :

http://users.pandora.be/elian.lievens/new/index.html

That's where i'm going to. I need the green div to be the exact height, because i need the scrollbar. With your solution, the div that looks green just get's as big as it needs.

The index page is exactly what i want in netscape and mozilla. But not in IE. How can i get this result?

And another question: which browser is wrong here? Is it IE or the others?

markaxsysdesign
markaxsysdesign's picture
Offline
Regular
Toccoa, Georgia
Last seen: 16 years 46 weeks ago
Toccoa, Georgia
Joined: 2004-01-09
Posts: 42
Points: 0

layout problem with IE

IE is definitely the browser that is wrong, but remember that 90% of internet users use IE. So it should definitely be fixed. Right now I do not have access to multiple browsers so I will get back to you with an answer later.

http//mark.axsysdesign.com