Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 06-29-2009, 06:29 AM css height problem
Junior Talker

Posts: 2
Trades: 0
I've made a website, but ie6 doesn't display the middle div 30px from the bottom of the page.
I used the folowing xhtml code:

Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>title</title>
<link href="stijl.css" rel="stylesheet" type="text/css" />
</head>
<body>
<center>
<!--*************************-->
<div id="boven" name="boven">

</div>
<!--*************************-->
<div id="inhoud" name="inhoud">

</div>
<!--*************************-->
<div id="onder" name="onder">

</div>
<!--*************************-->
</center>
</body>
</html>
the css code for this page is:
Code:
body{
position: absolute;
text-align: center;
margin: 0px;
padding: 0px;
height: 100%;
width: 100%;
background-image: url(images/background.jpg);
background-repeat: repeat-x;
font: normal normal normal 12px sans-serif, serif;
color: black;
background-color: white;
overflow: auto;
border: 1px solid red;
}
div{
overflow: auto;
margin: 0px;
padding: 0px;
}
#boven{
position: absolute;
width: 800px;
height: 150px;
left: 50%;
margin-left: -400px;
border: 1px solid red;
}
#inhoud{
position: absolute;
left: 50%;
margin-left: -400px;
width: 800px;
top: 150px;
bottom: 30px;
border: 1px solid red;
}
#onder{
position: absolute;
bottom: 0px;
left: 50%;
margin-left: -400px;
width: 800px;
height: 30px;
border: 1px solid red;
}
dragfire is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-29-2009, 11:02 AM Re: css height problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Why are you using position absolute on everything ??
IE6 (and older) has big problems with all that positioning. It's better to learn to use the normal document flow to your advantage.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-30-2009, 11:52 AM Re: css height problem
Junior Talker

Posts: 2
Trades: 0
I use absolute positioning because i only want the middle row to have a scrollbar,
the top and bottom row should not be able to move their position.
dragfire is offline
Reply With Quote
View Public Profile
 
Old 06-30-2009, 04:03 PM Re: css height problem
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
Then just specify a height and the scroll property on that middle row, it's not going to move anywhere but it will scroll.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to css height problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13854 seconds with 12 queries