Advertisement

04.24.2007 at 01:22AM PDT, ID: 22529817
[x]
Attachment Details

CSS floating div - center on page

Asked by sabecs in Cascading Style Sheets (CSS)

Tags: div, center, page, floating, css

Hi,
Is it possible to make the left, middle & right parts of my page extend to the bot <div> tag.
Currently the height is set to 70%, I want it to finish exactly 60px from the bottom regardless of screen resolution. I need it to work with IE 6.0, or lower.



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"></div>
<div id="menu"></div>
<div id="left"></div>
<div id="middle"></div>
<div id="right"></div>
<div id="bot"></div>
</body>
</html>


style.css shown below.



html, body {
margin: 0;
padding: 0;
background: #FFFFFF;
height: 100%;
}

#top{
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 60px;
      background-color: #003366;
}
#menu{
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      height: 25px;
      background-color: #FF3366;
}
#middle{
position: relative;
top: 86px;
margin-right: 150px;
margin-left: 150px;
height: 70%;
background-color: #7555DD;
}
#left{
      position: absolute;
      left:0px;
      top: 86px;
      width: 150px;
      overflow: auto;
      height: 70%;
      background-color: #009900;
}
#right{
      position: absolute;
      right:0px;
      top: 86px;
      width: 150px;
      overflow: auto;
      background-color: #CC6600;
      height: 70%;
}
#bot{
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 61px;
      background-color: #999999;
}


I am new to CSS so any advice would be appreciated, thanks.

Thanks.
Start Free Trial
[+][-]04.24.2007 at 04:54AM PDT, ID: 18964856

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.24.2007 at 06:01AM PDT, ID: 18965318

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.24.2007 at 06:31AM PDT, ID: 18965569

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.26.2007 at 05:39AM PDT, ID: 18980868

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.11.2007 at 02:12AM PDT, ID: 20055222

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Cascading Style Sheets (CSS)
Tags: div, center, page, floating, css
Sign Up Now!
Solution Provided By: Noggin182
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32