mgisonno
10-13-2006, 04:26 AM
I don't seem to understand why floating something to 100% causes display issues with this layout... basically, I have a header, left column, middle column, right column. When I try to make a stretching box with rounded corners, i can't achieve it with any method because creating a middle area with a width of 100% causes like 800px of white space.... same for floated divs that have been clear:both'ed... here's the css and code:
CSS:
<!--
ul {list-style: none; margin: 0; padding: 0;}
img {border: none; margin: 0; padding: 0; display: block;}
form {margin: 0; padding: 0;}
a {text-decoration: underline; color: #336699;}
a:hover {text-decoration: none; color: #336699;}
.clear {clear: both;}
.right {float: right;}
/* AI.COM Bare bones page layout */
body, div {margin: 0; padding: 0; font-family: Verdana,Arial,Helvetica,Geneva,sans-serif}
#bodywrap {
text-align: left;
min-width: 772px;
max-width: 2600px;
/* This is experimental... IE min-width / max-width fix */
width: expression( (d = document)
&& (fs = 1.12)
&& (po = 2 * fs)
&& (bo = 3)
&& (min = 772)
&& (max = 2600)
&& (cw = d.body.clientWidth)
&& (px = 'px')
&& (cw - po >= max + bo ? max + px : cw - po <= min + bo ? min + px : 'auto')
);
}
#contentwrap {background: url(/images/backgrounds/sitenav_bg.gif) repeat-y;}
/* Used to turn off the left nav */
#contentwrapnl {background: #fff;}
#header {border-bottom: 1px #868686 solid;}
#main {margin-left: 191px;}
/* Used to turn off the left nav */
#mainnoleft {margin-left: 0;}
#menu {width: 191px; float: left; background: url(/images/backgrounds/sitenav_bg.gif) repeat-y;}
#maintop {padding: 0 0 0 10px; background: url(/images/backgrounds/sitepagetitle_bg.gif) repeat-x;}
#right {width: 150px;float: right; font-size: 80%;}
#left {margin-right: 150px; padding: 0 10px; font-size: 80%;}
/* Used to turn off the right content block */
#leftnoright {margin-right: 0; padding: 0 10px; font-size: 80%;}
#footer {clear: both; background: #fff;}
p {margin: 0;padding: 0 0 10px 0;}
.sf {margin: 0; padding: 0; float: left;}
.off {display: none;}
/* AI.COM Bare bones page layout */
/* Search stuff */
#searchbutton {background: #2e5882 url(/images/buttons/sitesearch_bg.gif) bottom repeat-x; color: #ffffff; border-top: 1px #ccc Solid; border-left: 1px #ccc Solid; border-right: 1px #868686 Solid; border-bottom: 1px #868686 Solid; font-weight: bold; padding: 1px 5px 1px 5px; width: 65px; font-size: 11px; cursor: pointer;}
#q {border: 1px solid #000; width:153px; height: 13px; font-size: 9px; margin-top: 1px;}
/* Search stuff */
/* This is for print */
#siteheadermidtext {display:none;}
/* This is for print */
/* Intuit Global Header */
#intuitglobal {background: #ffffff; height: 28px; border-bottom: 10px #ffffff solid;}
#intuitlogo {background: #ffffff; padding: 5px; float: left;}
#intuitglobalnav {padding-right: 10px; background: #666666 url(/images/backgrounds/gnav_slash.gif) no-repeat; width: 200px; height: 28px; float: right;}
/* Intuit Global Header */
/* AI.COM Global Header */
#siteheader {width: 100%; background: url(/images/backgrounds/siteheader_bg.gif) repeat-x;}
#siteheadermid {width: 100%; background: url(/images/backgrounds/siteheader.gif) center no-repeat; height: 40px; border-bottom: 1px #fff solid;}
#siteheaderbot {width: 100%; background: #cccccc; text-align: center; padding: 2px 0px 2px 0px; border-top: 1px #868686 solid; font-size: 80%;}
/* AI.COM Global Header */
/* AI.COM Global Content Section */
#sitemain {float: left; margin: 7px 0px 10px 10px;}
.sitemaintitle {font-size: 110%; font-weight: bold; padding: 5px 0px 5px 0px; border-bottom: 1px #868686 solid;}
.sitemainsubtitle {font-size: 90%; font-weight: bold; padding: 5px 0px 5px 0px; color: #333333;}
/* AI.COM Global Content Section */
/* AI.COM Global Breadcrumb */
#sitebreadcrumb {font-size: 70%; padding-top: 5px;}
#sitebreadcrumb a {color: #336699; text-decoration: underline;}
#sitebreadcrumb a:hover {text-decoration: none;}
/* AI.COM Global Breadcrumb */
#sitepagetools {font-size: 70%; height: 15px; margin-bottom: 10px; padding: 0 10px 0 0;}
/* AI.COM Global Footer */
#sitefooter {background: #666666; width: 100%; text-align:left; float: left; font-size: 90%;}
#sitefooterwrap {position: relative; bottom: 0px; left: 0px; margin: 0; padding: 0; width: 100%;}
#sitefooterwhite {background: #ffffff; font-size: 60%; font-weight: normal; padding: 5px; text-align:left;}
#sitefooter div {margin: 0px 30px 0px 5px; font-size:80%; float:left; padding: 2px 0px 1px 0px;}
#sitefooter div a {color:#fff; text-decoration:none; font-weight:bold;}
#sitefooter div a:hover {color:#fff; text-decoration:underline; font-weight:bold;}
/* AI.COM Global Footer */
/* AI.COM Site Navigation */
#sitenav {width: 190px; font-weight: bold; margin-top: 20px; font-size: 80%;}
/* MainNav */
#sitenav ul.main li a {
height: 32px;
voice-family: "\"}\"";
voice-family: inherit;
height: 24px;
text-decoration: none;
}
#sitenav ul.main li a:link, #sitenav ul.main li a:visited {color: #FFF; display: block; background: url(/images/backgrounds/sitenav.gif); padding: 8px 0 0 10px;}
#sitenav ul.main li a:hover, #sitenav ul.main li #current {color: #000; background: url(/images/backgrounds/sitenav.gif) 0 -32px; padding: 8px 0 0 10px;}
/* SubNav */
#sitenav ul.main ul.sub {border-top: 1px #868686 solid; font-weight: normal}
#sitenav ul.main ul.sub li a {
height: 20px;
voice-family: "\"}\"";
voice-family: inherit;
height: 20px;
text-decoration: none;
}
#sitenav ul.main ul.sub li a:link, #sitenav ul.main ul.sub li a:visited {color: #000; display: block; background: #c8c8c8; padding: 2px 0 0 20px;}
#sitenav ul.main ul.sub li #currentsub {color: #000; background: #c8c8c8 url(/images/bullets/current_dg.gif) 11px 6px no-repeat; padding: 2px 0 0 20px;}
#sitenav ul.main ul.sub li a:hover {color: #000; background: #ededed url(/images/bullets/current_lg.gif) 11px 6px no-repeat; padding: 2px 0 0 20px;}
/* SubNav Level2 */
#sitenav ul.main ul.sub ul.sub2 {border-top: 1px #868686 solid; border-bottom: 1px #868686 solid; font-weight: normal;}
#sitenav ul.main ul.sub ul.sub2 li a {
height: 20px;
voice-family: "\"}\"";
voice-family: inherit;
text-decoration: none;
}
#sitenav ul.main ul.sub ul.sub2 li a:link, #sitenav ul.main ul.sub ul.sub2 li a:visited {color: #000; background: #ededed; padding: 3px 0 0 30px;}
#sitenav ul.main ul.sub ul.sub2 li a:hover, #sitenav ul.main ul.sub ul.sub2 li #currentsub2 {color: #000; background: #ffffff url(/images/bullets/current_wt.gif) 21px 7px no-repeat; padding: 3px 0 0 30px;}
#sitenav ul.main ul.sub ul.sub2 li a.sm {height: 20px;}
#sitenav ul.main ul.sub ul.sub2 li a.bg {height: 35px;}
#sitenav ul.main ul.sub li a.sm {height: 20px;}
#sitenav ul.main ul.sub li a.bg {height: 35px;}
/* AI.COM Site Navigation */
-->
CSS:
<!--
ul {list-style: none; margin: 0; padding: 0;}
img {border: none; margin: 0; padding: 0; display: block;}
form {margin: 0; padding: 0;}
a {text-decoration: underline; color: #336699;}
a:hover {text-decoration: none; color: #336699;}
.clear {clear: both;}
.right {float: right;}
/* AI.COM Bare bones page layout */
body, div {margin: 0; padding: 0; font-family: Verdana,Arial,Helvetica,Geneva,sans-serif}
#bodywrap {
text-align: left;
min-width: 772px;
max-width: 2600px;
/* This is experimental... IE min-width / max-width fix */
width: expression( (d = document)
&& (fs = 1.12)
&& (po = 2 * fs)
&& (bo = 3)
&& (min = 772)
&& (max = 2600)
&& (cw = d.body.clientWidth)
&& (px = 'px')
&& (cw - po >= max + bo ? max + px : cw - po <= min + bo ? min + px : 'auto')
);
}
#contentwrap {background: url(/images/backgrounds/sitenav_bg.gif) repeat-y;}
/* Used to turn off the left nav */
#contentwrapnl {background: #fff;}
#header {border-bottom: 1px #868686 solid;}
#main {margin-left: 191px;}
/* Used to turn off the left nav */
#mainnoleft {margin-left: 0;}
#menu {width: 191px; float: left; background: url(/images/backgrounds/sitenav_bg.gif) repeat-y;}
#maintop {padding: 0 0 0 10px; background: url(/images/backgrounds/sitepagetitle_bg.gif) repeat-x;}
#right {width: 150px;float: right; font-size: 80%;}
#left {margin-right: 150px; padding: 0 10px; font-size: 80%;}
/* Used to turn off the right content block */
#leftnoright {margin-right: 0; padding: 0 10px; font-size: 80%;}
#footer {clear: both; background: #fff;}
p {margin: 0;padding: 0 0 10px 0;}
.sf {margin: 0; padding: 0; float: left;}
.off {display: none;}
/* AI.COM Bare bones page layout */
/* Search stuff */
#searchbutton {background: #2e5882 url(/images/buttons/sitesearch_bg.gif) bottom repeat-x; color: #ffffff; border-top: 1px #ccc Solid; border-left: 1px #ccc Solid; border-right: 1px #868686 Solid; border-bottom: 1px #868686 Solid; font-weight: bold; padding: 1px 5px 1px 5px; width: 65px; font-size: 11px; cursor: pointer;}
#q {border: 1px solid #000; width:153px; height: 13px; font-size: 9px; margin-top: 1px;}
/* Search stuff */
/* This is for print */
#siteheadermidtext {display:none;}
/* This is for print */
/* Intuit Global Header */
#intuitglobal {background: #ffffff; height: 28px; border-bottom: 10px #ffffff solid;}
#intuitlogo {background: #ffffff; padding: 5px; float: left;}
#intuitglobalnav {padding-right: 10px; background: #666666 url(/images/backgrounds/gnav_slash.gif) no-repeat; width: 200px; height: 28px; float: right;}
/* Intuit Global Header */
/* AI.COM Global Header */
#siteheader {width: 100%; background: url(/images/backgrounds/siteheader_bg.gif) repeat-x;}
#siteheadermid {width: 100%; background: url(/images/backgrounds/siteheader.gif) center no-repeat; height: 40px; border-bottom: 1px #fff solid;}
#siteheaderbot {width: 100%; background: #cccccc; text-align: center; padding: 2px 0px 2px 0px; border-top: 1px #868686 solid; font-size: 80%;}
/* AI.COM Global Header */
/* AI.COM Global Content Section */
#sitemain {float: left; margin: 7px 0px 10px 10px;}
.sitemaintitle {font-size: 110%; font-weight: bold; padding: 5px 0px 5px 0px; border-bottom: 1px #868686 solid;}
.sitemainsubtitle {font-size: 90%; font-weight: bold; padding: 5px 0px 5px 0px; color: #333333;}
/* AI.COM Global Content Section */
/* AI.COM Global Breadcrumb */
#sitebreadcrumb {font-size: 70%; padding-top: 5px;}
#sitebreadcrumb a {color: #336699; text-decoration: underline;}
#sitebreadcrumb a:hover {text-decoration: none;}
/* AI.COM Global Breadcrumb */
#sitepagetools {font-size: 70%; height: 15px; margin-bottom: 10px; padding: 0 10px 0 0;}
/* AI.COM Global Footer */
#sitefooter {background: #666666; width: 100%; text-align:left; float: left; font-size: 90%;}
#sitefooterwrap {position: relative; bottom: 0px; left: 0px; margin: 0; padding: 0; width: 100%;}
#sitefooterwhite {background: #ffffff; font-size: 60%; font-weight: normal; padding: 5px; text-align:left;}
#sitefooter div {margin: 0px 30px 0px 5px; font-size:80%; float:left; padding: 2px 0px 1px 0px;}
#sitefooter div a {color:#fff; text-decoration:none; font-weight:bold;}
#sitefooter div a:hover {color:#fff; text-decoration:underline; font-weight:bold;}
/* AI.COM Global Footer */
/* AI.COM Site Navigation */
#sitenav {width: 190px; font-weight: bold; margin-top: 20px; font-size: 80%;}
/* MainNav */
#sitenav ul.main li a {
height: 32px;
voice-family: "\"}\"";
voice-family: inherit;
height: 24px;
text-decoration: none;
}
#sitenav ul.main li a:link, #sitenav ul.main li a:visited {color: #FFF; display: block; background: url(/images/backgrounds/sitenav.gif); padding: 8px 0 0 10px;}
#sitenav ul.main li a:hover, #sitenav ul.main li #current {color: #000; background: url(/images/backgrounds/sitenav.gif) 0 -32px; padding: 8px 0 0 10px;}
/* SubNav */
#sitenav ul.main ul.sub {border-top: 1px #868686 solid; font-weight: normal}
#sitenav ul.main ul.sub li a {
height: 20px;
voice-family: "\"}\"";
voice-family: inherit;
height: 20px;
text-decoration: none;
}
#sitenav ul.main ul.sub li a:link, #sitenav ul.main ul.sub li a:visited {color: #000; display: block; background: #c8c8c8; padding: 2px 0 0 20px;}
#sitenav ul.main ul.sub li #currentsub {color: #000; background: #c8c8c8 url(/images/bullets/current_dg.gif) 11px 6px no-repeat; padding: 2px 0 0 20px;}
#sitenav ul.main ul.sub li a:hover {color: #000; background: #ededed url(/images/bullets/current_lg.gif) 11px 6px no-repeat; padding: 2px 0 0 20px;}
/* SubNav Level2 */
#sitenav ul.main ul.sub ul.sub2 {border-top: 1px #868686 solid; border-bottom: 1px #868686 solid; font-weight: normal;}
#sitenav ul.main ul.sub ul.sub2 li a {
height: 20px;
voice-family: "\"}\"";
voice-family: inherit;
text-decoration: none;
}
#sitenav ul.main ul.sub ul.sub2 li a:link, #sitenav ul.main ul.sub ul.sub2 li a:visited {color: #000; background: #ededed; padding: 3px 0 0 30px;}
#sitenav ul.main ul.sub ul.sub2 li a:hover, #sitenav ul.main ul.sub ul.sub2 li #currentsub2 {color: #000; background: #ffffff url(/images/bullets/current_wt.gif) 21px 7px no-repeat; padding: 3px 0 0 30px;}
#sitenav ul.main ul.sub ul.sub2 li a.sm {height: 20px;}
#sitenav ul.main ul.sub ul.sub2 li a.bg {height: 35px;}
#sitenav ul.main ul.sub li a.sm {height: 20px;}
#sitenav ul.main ul.sub li a.bg {height: 35px;}
/* AI.COM Site Navigation */
-->