There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Web Design & Development
Tag Cloud
audio blue screen boot bsod computer connection crash dell drivers dvd email error excel firefox freeze graphics hard drive harddrive hardware hijackthis install internet itunes keyboard laptop malware monitor motherboard network outlook outlook 2007 problem registry cleaner registry cleaners router screen slow sound trojan upgrade usb video virus vista windows windows 7 windows vista windows xp wireless word
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Full Height XHTML/CSS

Tip: Click Here to Update All Your PC's Outdated Drivers
[ Sponsored Link ]

Closed Thread
 
Thread Tools
Saikuron's Avatar
Junior Member with 21 posts.
 
Join Date: Sep 2008
06-Oct-2008, 08:59 AM #1
Solved: Full Height XHTML/CSS
Can't seem to get this to work.

Goal:



Current:



- Columns are Fixed - Fluid - Fixed
- Regardless of whatever column is the longest, the other two needs to be the same height of the longest column.
- The minimum height based on the browser's viewport.

Footer is optional really if its a problem. The scrollbar always shows, and it does something weird in IE anyways.

In terms of browser support, FX2/IE7. IE 6 is a maybe.

I've been googling and throwing in full height codes left and right to no avail. Some might still be present...

Any help is greatly appreciated.

Code:
<?xml version="1.0" encoding="utf-8"?>
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Halp!</title>
<style type="text/css">
* {
margin: 0;
}

html, body {
margin:0;
padding:0;
height: 100%;
background: #2e2e2e;
color: #FFF;
line-height:1.5;
}

#pagecontainer {
position:relative; /* needed for footer positioning*/

height:auto !important; /* real browsers */
height:100%; /* IE6: treaded as min-height*/

min-height:100%; /* real browsers */
}

#topsection{ /*Height of top section*/
background: #FF0;
height: 80px;
}

#contentwrapper{
float: left;
width: 100%;
}

#contentcolumn{ /* 0 RightColumnWidth 0 LeftColumnWidth*/
margin: 0 200px 0 200px;
background: #F00;
}

#leftcolumn{ /*Width of left column*/
float: left;
width: 200px; 
margin-left: -100%;
padding-bottom: 20px; /* bottom padding for footer */
height: 100%;
background: #00F;
}

#rightcolumn{ /*Width of right column*/
float: left;
width: 200px; 
margin-left: -200px;
padding-bottom: 20px; /* bottom padding for footer */
height: 100%;
background: #0F0;
}

#footer {
position:absolute;
width:100%;
bottom:0; /* stick to bottom */
background:#888;
height: 20px;
padding:0;
margin:0;
}
</style>
</head>
<body>
<div id="pagecontainer">
<!-- Wrap entire page in a div -->
<div id="contentwrapper">
<!-- Wrap main column in a div -->
<div id="contentcolumn">
<!--Page Heading-->
<div id="topsection"><h1>Header</h1></div>
Main Column
</div>
</div>

<!-- Left Column -->
<div id="leftcolumn">
Left Column
</div>
<!-- Right Column -->
<div id="rightcolumn">
Right Column
</div>
<!-- Footer -->
<div id="footer"><p>Footer</p></div>
</div>
</body>
</html>
globex's Avatar
Computer Specs
Junior Member with 3 posts.
 
Join Date: Oct 2008
Location: Vancouver, BC, Canada
Experience: Advanced
06-Oct-2008, 01:15 PM #2
Saikuron's Avatar
Junior Member with 21 posts.
 
Join Date: Sep 2008
06-Oct-2008, 03:15 PM #3
Tried that, can't seem to get it to work with 3 columns.
Closed Thread Bookmark and Share

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:11 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Powered by Cermak Technologies, Inc.