Menu
I’m working on perfecting my skills at using div based layouts. I can get fluid full-length column layouts by having a containing div with a valued height, px em % whatever, and thing placing my column divs inside of it with their height attribute set to a 100% height. However, I’ve seen a fluid full length columned layout that does not use the height property but the auther does not elaborate much on how it is done. I’ve looked at the code but can’t quite pin down how it’s being done because I’m not sure of the default behaviours of div elements, and block elemnts work fully. Any insight or links?
and it will be 100% the [I]height of the parent elements[/I] (html, body), not just the [I]height of the viewscreen[/I].[/QUOTE]
[url=http://www.pmob.co.uk/temp/3colfixedtest_4.htm]Check this out.[/url] [/QUOTE]
[B]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">[/B]
<html xmlns="http://www.w3.org/1999/xhtml ">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<title></title>
<style type="text/css">
* {border:0; padding:0; margin:0;}/* Set everything to "zero" */
html, body {min-height:100%; /*for compliant browsers*/
padding-bottom:25px; /* IE does not understand "margin-bottom" on BODY, so padding-bottom instead*/
font:x-small Arial, Verdana, sans-serif;voice-family: ""}"";voice-family:inherit;font-size:small;}/*for IE 5.5 */
html>body {font-size:small; height:auto;/* Assist IE6 and earlier, 100% height */
font-size: small; voice-family: ""}"";voice-family: inherit; font-size: medium}
/* Assist IE rendering height, keyword-font sizes, etc. */
#menu ul li {float: left; /* cure IE5.x "whitespace in lists" problem */width: 100%;}
#menu ul li a {height: 1%; /* make links honour display: block; properly */}
#wrapper {min-height:100%; overflow:hidden;} /* 100% height for compliants, enwraps content*/
* html #wrapper {height:100%;}/* and feed IE what it needs */
h1, h2, h3, h4, h5, h6 {font-size:0; font-family: 'times new roman', arial, verdana, helvetica,
sans-serif; background-color:none;font-style:normal; font-variant:normal;
font-weight:normal; margin:14px 0 4px 10px;}
h1 {font-size: 1.60em;}
h2 {font-size: 1.50em;}
h3 {font-size: 1.40em;}
h4 {font-size: 1.30em;}
h5 {font-size: 1.26em;}
h6 {font-size: 1.20em;}/* Defined default Header sizes*/
p {font-size:100%; font-size:1.0em; line-height:1.1em; margin:16px 0 12px 0;}
</style>
<style>
</style>
<script type="text/javascript"><!--
// -->
</script>
<link rel="shortcut icon" href="favicon.ico" /><!-- path to your favicon -->
</head>
<body>
[B]<div style="position:relative; width:400px; margin:20px auto; padding:20px; background-color:white; border:1px solid red; border-left:150px solid red; border-right:150px solid red; ">
<h3>The RED Columns are <br />BORDER-LEFT and BORDER-RIGHT</h3>
<p>Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium,
totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae
dicta sunt, explicabo. Nemo enim ipsam voluptatem, quia voluptas sit, aspernatur aut odit aut fugit,
sed quia consequuntur magni dolores eos, qui ratione voluptatem sequi nesciunt,
neque porro quisquam est, qui do<strong>lorem ipsum</strong>, quia <strong>dolor sit, amet, consectetur,
adipisci</strong> v<strong>elit, sed</strong> quia non numquam <strong>eius mod</strong>i <strong>tempor</strong>a <strong>incidunt, ut labore et dolore magna</strong>m <strong>aliqua</strong>m quaerat voluptatem.
</p>
<p><strong>Ut enim ad minim</strong>a <strong>veniam, quis nostru</strong>m <strong>exercitation</strong>em <strong>ullam co</strong>rporis suscipit <strong>laborios</strong>am, <strong>nisi ut aliquid ex ea commodi consequat</strong>ur? <strong>Quis aute</strong>mvel eum <strong>iure reprehenderit,</strong> qui <strong>in</strong> ea <strong>voluptate velit esse</strong>, quam nihil molestiae <strong>c</strong>onsequatur, vel <strong>illum</strong>, qui <strong>dolore</strong>m <strong>eu</strong>m <strong>fugiat</strong>, quo voluptas <strong>nulla pariatur</strong>
</p>
<p>At vero eos et accusamus et iusto odio dignissimos ducimus,
qui blanditiis praesentium voluptatum deleniti atque corrupti, quos dolores et quas molestias
<strong>exceptur</strong>i <strong>sint, obcaecat</strong>i <strong>cupiditat</strong>e <strong>non pro</strong>v<strong>ident</strong>, similique <strong>sunt in culpa</strong>, <strong>qui officia deserunt mollit</strong>ia <strong>anim</strong>i, <strong>id est laborum</strong>et dolorum fuga.
</p>
<div style="position:absolute; left:-140px; top:25px; color:white; width:130px;">
<h1>LEFT Col</h1>
<p>Left left left, left left left. Left left: left.. left left left.</p>
<p>Left left left, left left left. Left left</p>
</div>
<div style="position:absolute; right:-140px; top:25px; color:white; width:130px;">
<h1>RIGHT Col</h1>
<p>Right right right right. Right? Right right right right, right.</p>
<p>Right right right right. Right? Right right right right, right.</p>
</div>
</div>[/B]
</body>
</html>[/QUOTE]
0.1.9 — BETA 6.2