CSS - Ideas As To Why Setting A Height Would Cause Layout To Not Appear (in Ie)?
Fixed.
Similar TutorialsHi i have a content div inside a container div, the content in the content div stretches automatically but the container div doesnt stretch to accomodate the bigger content div....is it possible to get it to stretch the same as the content? the only solution ifound was to fix the height and set the overflow to auto so that i get a scroll bar but that looks rubbish ;o( cheers Andy Hello, I've been teaching myself css code for the past four days, and I almost have my website exactly the way I want it to look except for one thing. I have a three column layout and my right column always jumps under everything when the browser is re-sized. It only seems to work how I want it to in Safari. I've tried a ton of different things, and nothing seems to work, but I am a real novice. If you could help, I'd really appreciate it. Here is my css code: body { background-image: ( address blocked: See forum rules); margin: 0px; padding-left: 8%; padding-right: 8%; padding-top: 10px; background-attachment: scroll; min-width: 1000px; } #header { background: #00ff00; background-image: (address blocked: See forum rules); width: 100%; height: 125px; background-repeat: no-repeat; margin-bottom: 5px; border-style: ridge; border-color: black; min-width: 1050px; } #leftcol { background-image: ( address blocked: See forum rules); float: left; width: 14%; height: 722px; border-style: ridge; border-color: black; min-width: 145px; } #rightcol { background-image: ( address blocked: See forum rules); width: 12.5%; height: 722px; border-style: ridge; border-color: black; min-width: 142px; overflow: hidden; position: inherit; } #content { background: #fff; float: left; width: 70%; height: 722px; border-style: ridge; border-color: black; margin-left: 5px; margin-right: 5px; margin-bottom: 5px; min-width: 735px; } #footer { background: #660066; clear: none; width: 1050px; height: auto; border-style: ridge; border-color: black; margin-top: 5px; position: absolute; } I need some people to bounce ideas off of. I am having a real hard time coming up with a layout that is accessible and fits my layout. The form is very simple with two radio buttons and a text field. What I want is for the two radio buttons to display as a block but fit in a tight spot and the text field to float to the right and center if the two radio buttons. Here is a quick photochop of what I am going for. gary.webb.waptug.org/projects/epls/ Here is a link to the code I am building. gary.webb.waptug.org/projects/epls/images/search.gif Notice in the image that I have modified the banner a bit to fit the search form into the bottom dark blue bar. Thanks in advance. Hello Just recently I had an idea for a page I wanted to make, the design is basically a 3-column layout with no traditional header or footer, the height of all three columns should run the length of the window/page height the left and rightmost column would have a fixed width or a width in em, the center column width should fill the space in between. If the content is short all columns should extend to the height of the page window, but if the content in any of the columns is longer than the window height they should all extend to reach the bottom of the page and accommodate the content length In my first attempt things didn't go so well, results varied wildly across browsers so I decided to start from scratch bit by bit Bellow is the point at which I reach consistent but undesired behaviour, I have validated and tested the code in Firefox 3/Pale Moon, Internet Explorer 8, Chromium 9, and Opera 11 I would like the end result to work in the above browsers as well as IE7 if possible I should point out now that im not interested in using faux-columns, the layout should not require images, I also wish to have absolute-positioned elements in the columns some time later Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Three Columns</title> <style type="text/css"> *, html, body { margin: 0; padding: 0; font-size: 100%; } html, body { width: 100%; height: 100%; } #maincontainer { position: relative; height: 100%; background: #eee; } #left { position: absolute; top: 0px; left: 0px; width: 200px; background: #fbb; height: 100%; } #mid { position: relative; margin: 0 200px 0 200px; background: #efe; height: 100%; } #right { position: absolute; top: 0px; right: 0px; width: 200px; background: #bbf; height: 100%; } </style> </head> <body> <div id="maincontainer"> <div id="left"> left start<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left<br /> left end<br /> </div> <div id="mid"> mid start<br /> mid<br /> mid<br /> mid<br /> mid<br /> mid<br /> mid end<br /> </div> <div id="right"> right start<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right<br /> right end<br /> </div> </div> </body> </html> In the above example it works as long as the content within the columns is shorter than the window height, but if you re-size the window so that the text in the right or left column goes beyond the page, and then scroll to the bottom, the columns do not extend to the bottom of the page so there is a large gap where the content overflows beyond the column What I would like to do from this point is make the columns extend to the bottom of the page when this happens, but I'm not sure how best to proceed I also have a version of the above code which uses floated left and right columns instead of absolute positioned ones, would it be better to work from that? or does it not really matter Thanks in advance Coding my site up, and I've hit a stump. I've got a box div that I'm putting text in. I try adjusting the height, and it works fine in Mozilla/Firebird, but IE just seems to ignore it (which is causing me problems). Anyone familiar with this? Hi guys, Before I go on, here's the page I'm referring to: http://student-consolidation-loans.co.uk/newsite3/ In IE 6 on the PC the layout is how I want it, however, skip over to the mac and it doesn't look correct in any browser (safari, IE, firefox...) The problem is I've given one of the DIVs (the one that contains the white and black diagonally striped background) an auto height so it stretches to fit all the content, but while IE 6 is picking up on this none of the mac browsers are. Is there a workaround? thanks! Greets, I'm trying to get the follwing collumns to display on the complete height of the element they are nested in. Each of the 3 collumns currently only take the space required by the content that is in said element. Preview: The current layout is set with 3 divs (2 left floating, and the bigger one on right-float). I don't want to use tables/cells and I cannot use min-height as the content will be filled by the customer using a CMS. I Wish i could use something like: Code: #col_1 {height: parent.height;} here is a link to the actual page, please note that to use the style i am talking about you will have to use the top left select element and choose GH_02 -v. (this is my 1st attempt to have the same content with multiple css sets...) Is there a way that this can be done, basically I have a div hidden based on certain JS logic, but the amount of space of the content in the div is still taken up on the screen. I would like to make the div say 0xp and discard content. Is there any code that can help me, I've looked but can't find. Thanks I've got a problematic background DIV. It fills up the entire viewport and looks correct, but cuts off at the bottom (one screen height down) when I scroll. How can I get this DIV to span the entire height of the document, instead of just the height of the viewport? BTW, it works fine in IE 6, but cuts off in FireFox 0.9, Opera 7.5, and Netscape 7.1 Here's the code (you'll have to populate the content DIV to get scrollbars and witness the problem): Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <style type="text/css"> <!-- body { margin: 0; padding: 0; height: 100%; background-color: #F1EFE2; } html { margin: 0; padding: 0; height: 100%; } .bg { position: relative; margin-top: 0px; margin-left: auto; margin-right: auto; margin-bottom: 0px; width: 960px; height: 100%; background: #F7F6EF; text-align: center; border-right-color: #9E987F; border-right-width: 1px; border-right-style: solid; border-left-width: 1px; border-left-style: solid; border-left-color: #9E987F; } .heading { position: relative; margin-top: 0px; margin-left: 0px; margin-right: 0px; width: 100%; background: #7C2812; color: #F7F6EF; vertical-align: middle; text-align:left; padding-top: 10px; padding-bottom: 10px; text-indent: 10px; } .content { position: relative; top: 20px; padding-left: 15px; padding-right: 15px; width: 920px; vertical-align: top; text-align:left; } --> </style> </head> <body onResize="window.location.href = window.location.href;"> <div class="bg"> <div class="heading"> heading goes here </div> <div class="content"> content goes here </div> </div> </body> </html> Any help would be greatly appreciated! this is my layout as of now http://72.232.208.44/new/ you can probally look at it and see what else needs to be done, its very close to completion. theres a div called "left-side-gradient" which is that small thing light bluegreenish line down the left side. right now how ti works is however long i set that line to be is how long the main content area is. which is backwards, i need the left-side-gradient line to be however long the main content div is. and the main content div needs to always stretch down to the bottom panel i've tried everything with all sorts of css variations and i can't figure it out. also i need to do the same sort of effect to the right-side-gradient. but im sure if someone tells me how i can fix the left side i can apply the same sort of rules to the right side. also the top banner portion and the lower content portion has this small gap in them. i can't seem to get that gap to go away either :/ (my html and css are w3 validated) HTML Code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>page</title> <SCRIPT SRC="javascript.js" type="text/javascript"></SCRIPT> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body> <div id="container"> <div id="banner"> </div> <div id="banner_under"> <ul id="float_ul"> <li><a href="index.html" onMouseover="lightup('pic1')" onMouseout="turnoff('pic1')"><img src="images/bHome.jpg" class="noborder" name="pic1" width="56" height="28" alt="Go Fast Gaming - Home"></a></li> <li><a href="services.php" onMouseover="lightup('pic2')" onMouseout="turnoff('pic2')"><img src="images/bServices.jpg" class="noborder" name="pic2" width="78" height="28" alt="Go Fast Gaming - Services"></a></li> <li><a href="contact.php" onMouseover="lightup('pic3')" onMouseout="turnoff('pic3')"><img src="images/bContact.jpg" class="noborder" name="pic3" width="73" height="28" alt="Go Fast Gaming - Contact"></a></li> <li><a href="controlpanel.php" onMouseover="lightup('pic4')" onMouseout="turnoff('pic4')"><img src="images/bControlPanel.jpg" class="noborder" name="pic4" width="113" height="28" alt="GO Fast Gaming - Control Panel"></a></li> </ul> </div> <div id="below_banner_container"> <ul id="float_ul"> <li><div id="top-left-gradient-extension"></div></li> <li><div id="top-middle-extension"></div></li> <li><div id="right-side-extension"></div></li> <li><div id="top-right-extension"></div></li> </ul> <ul id="float_ul"> <li> <div id="left_main"> <ul id="float_ul"> <li><div id="left-side-gradient"></div></li> <li><div id="content_area"><h2>Big Title</h2><br>stuffstuffstuffstuff stuffstuffstuffstuffstuffstuff stuffstuffstuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff</div></li> </ul> </div> <div id="right_main"> <ul id="float_ul"> <li><div id="right-side-gradient"></div></li> <li><div id="right-side-text">falala f f f f f f f f f f f f f f f f f f f f f f f f f fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvvvv</div></li> </ul> <ul id="float_ul"> <li><div id="right-side-split"></div></li> </ul> <ul id="float_ul"> <li><div id="right-side-gradient"></div></li> <li><div id="right-side-text">falala f f f f f f f f f f f f f f f f f f f f f f f f f fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvv fvvvv</div></li> </ul> </div> </li> </ul> <ul id="float_ul"> <li> <div id="bottom_panel-upper"> textextextext </div> <div id="bottom_panel-lower"> text text text text </div> </li> </ul> </div> </div> </body> </html> CSS Code: BODY{background-color:#003333;margin:auto;} .noborder{border:thin none #000000;} .center_text{ text-align:center; } #float_ul{ padding: 0; margin: 0; float: right; } #float_ul li { padding: 0; margin: 0; display: inline; list-style-type: none; float:left; } #container{ width:750px; margin:auto; text-align:center; } #below_banner_container{ border:thin none #000000; border-spacing:0; margin:auto;; text-align:center; padding:0; width:750px; } /* END MISC CLASSES BEGIN BANNER CLASSES */ #banner{ border:thin none #000000; border-spacing:0; padding:0; width:750px; height:155px; background-image:url("images/GFG-topBanner_01.jpg"); background-repeat: no-repeat; } #banner_under{ border:thin none #000000; border-spacing:0; padding:0; width:750px; height:28px; background-image:url("images/GFG-topBanner_02.jpg"); background-repeat: no-repeat; } /* END BANNER CLASSES BEGIN EXTENSION CLASSES */ #top-left-gradient-extension{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:1px; height:30px; float:left; } #top-middle-extension{ border:thin none #000000; border-spacing:0; padding:0; background-color:#006666; width:500px; height:30px; text-align:left; vertical-align:top; } #right-side-extension{ border:thin none #000000; border-spacing:0; padding:0; background-color:#006666; width:49px; height:30px; background-image:url("images/right-side-extension.jpg"); background-repeat: no-repeat; } #top-right-extension{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:200px; height:30px; background-image:url("images/top-right-extension.jpg"); background-repeat: no-repeat; } /* END EXTENSION CLASSES BEGIN LEFT SIDE CLASSES */ #left_main{ border:thin none #000000; border-spacing:0; padding:0; background-color:#006666; width:550px; text-align:left; vertical-align:top; float:left; } #left-side-gradient{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:1px; height:400px; position:relative; } #content_area{ border:thin none #000000; border-spacing:0; padding:0; background-color:#006666; width:549px; text-align:left; vertical-align:top; background-image:url("images/left-side-gradient.jpg"); background-repeat: repeat-y; } /* END LEFT SIDE CLASSES BEGIN RIGHT SIDE CLASSES */ #right_main{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:200px; text-align:left; vertical-align:top; float:right; } #right-side-gradient{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:6px; height:100px; background-image:url("images/side-gradient.jpg"); background-repeat: repeat-y; position:relative; } #right-side-text{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:194px; text-align:left; vertical-align:top; } #right-side-split{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:200px; height:31px; background-image:url("images/right-column-split.jpg"); background-repeat: no-repeat; } /* END RIGHT SIDE CLASSES BEGIN BOTTOM PANEL CLASSES */ #bottom_panel-upper{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:750px; height:20px; font-size:13px; text-align:center; vertical-align:top; } #bottom_panel-lower{ border:thin none #000000; border-spacing:0; padding:0; background-color:#339999; width:750px; height:20px; font-size:11px; text-align:center; vertical-align:top; } I'm wondering what's the word is called for setting the image width and height in CSS Code: img.test { <<What's the keyword??>>: 10 px; } Thanks, FletchSOD This will be tough, but I'm confident CSS can handle exactly what I need. I want to print onto labels. Actually, they're return address labels (1.75" by 0.5") to be specific. How do I set up a layout with the following specifications? Quote: Sheet Size: 8.5" x 11" (standard sheet of paper) Dimensions: 1.75" x 0.5" (dimensions of each label) Spacing Between Labels: Vertical Spacing 0", Horizontal Spacing 0.28125", Vertical Pitch 0.5", Horizontal Pitch 2.03125" Margins: Top 0.5", Bottom 0.5", Left 0.33", Right 0.33" Can someone give me a starting point and I'll try to figure it out? I'm lost on it. Thanks Hi friends, I am building my website templates compatible for any resolution ranging from 800x600 to maximum possible resolution. I want to place all the body content exactly in the center (900px layout). I have set the background exactly in the center. but when i am inserting the content, it is displayed from left. How should i set it in the center? please help me! Hello, i have a very strange problem with css. I want to build a horizontal menu, like tabs. Here is the link of my site. (sorry, its in russian) http://eai.w2o.ru/default.aspx Now you can see red border around the header div. When in layout.css, I remove the border, the header div changes its position (goes down). (in IE and FF (in FF is a little better)) Can you tell me what is my mistake? How can I do the same without that border? Thank you very much! I have spent the last two hours trying to fix this problem and it's driving me crazy. I've searched all over google and found all kinds of other height problems but none that are mine. Please help, before I go crazy. The problem: I have a 3 column layout that is set to 100% height with background images for each of the columns that stretches to fill the browser window vertically. It does this beautifully so long as the content that actually fills the columns is smaller than the height of the browser window. The moment you make the browser window smaller than the content in any of the columns and scroll down, the background only stretches in the column with the content. The other two are left shorter and the background stops at literally the height of the browser window only. I'm sure this is most likely a common problem and there's something I just am missing. I'm primarily a designer and I'm still learning CSS so please excuse the fact that my grasp of CSS is still very limited. I don't have the site up yet because I'm still building the code, so I can't provide a link but this is what my code looks like: The HTML: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "(URL address blocked)"> <html xmlns="(URL address blocked)"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>TC</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <div id="container"> <ul id="menu"> <li><img src="img/menu_top.png" /></li> <li><a class="menuhome" href="index.html"></a></li> <li><a class="menushowcase" href="showcase.html"></a></li> <li><a class="menuaboutus" href="aboutus.html"></a></li> <li><a class="menuservices" href="services.html"></a></li> <li><a class="menucontactus" href="contactus.html"></a></li> <li><img src="img/menu_bottom.png" /></li> </ul> <div id="main"> <img src="img/top.png" /><br /><br /> </div> <div id="right_strip"></div> </div> </body> </html> The CSS: Code: body { margin: 0; padding: 0; font-size: small; font-family: Verdana; background: #3d352f url("img/right_bg.png") repeat; } * html body { font-size: x-small; f\ont-size: small; } #container { margin: 0; padding: 0; width: 100%; height: 100%; } #menu { position: absolute; margin: 0; padding: 0; width: 214px; min-height: 100%; background: url("img/left_woodbg.png") repeat-y; list-style: none; } #menu li { float: left; display: inline; margin: 0; padding: 0; } a.menuhome { display: block; width: 214px; height: 57px; background: url("img/menu_home.png") 0 0 no-repeat; text-decoration: none; } a:hover.menuhome { background-position: -214px 0; } a.menushowcase { display: block; width: 214px; height: 57px; background: url("img/menu_showcase.png") 0 0 no-repeat; text-decoration: none; } a:hover.menushowcase { background-position: -214px 0; } a.menuaboutus { display: block; width: 214px; height: 57px; background: url("img/menu_aboutus.png") 0 0 no-repeat; text-decoration: none; } a:hover.menuaboutus { background-position: -214px 0; } a.menuservices { display: block; width: 214px; height: 57px; background: url("img/menu_services.png") 0 0 no-repeat; text-decoration: none; } a:hover.menuservices { background-position: -214px 0; } a.menucontactus { display: block; width: 214px; height: 57px; background: url("img/menu_contactus.png") 0 0 no-repeat; text-decoration: none; } a:hover.menucontactus { background-position: -214px 0; } #right_strip { position: absolute; margin: 0 0 0 844px; background: url("img/right_woodbg.png") repeat-y; width: 17px; min-height: 100%; } #main { position: absolute; margin: 0 0 0 214px; background: #f0deb6 url("img/center_bg.png") repeat; width: 630px; min-height: 100%; text-align: left; } Please take a look at the following page. its a simple two column layout http://www.aptlogix.com/testcss.html I need to have both divs side by side of same height independent of the contents in them. how can i stretch the right yellow backgroudn to the full length of the page ?. the yellow color is displayed till the height of the page when i scroll the page the rest of the bottom is white. i have tried that min-height thing with it but no luck. Please advice Regards, DQ This seems like it should be very easy to do but something is preventing it from working. I was following the guide at http://www.alistapart.com/articles/negativemargins but with my navigation column on the left. A summary of my layout right now is: <div id="wrapper"> <div id="container"> <div id="content"> </div> </div> <div id="navigation" <div id="navlist"> </div> </div> <div id="clearing"> </div> </div> my css: #container { float: right; margin-left: -16.8em; width: 100%; background-color: #2586d7; } #navigation { float: left; width: 14em; background: #90bade url(navimage.jpg) repeat-y: right; } #wrapper { background: #90bade url(navimage.jpg) repeat-y: right; } #navlist is a div containing a styled ul for navigation. #clearing { clear: both; height: 0; } So basically the navigation div is supposed to extend to the bottom as far as the container div goes. According to the guide at AListApart it should be working but is something else in my code interfereing? If everything above should work fine, I can post a link to the test file so you can see the rest of the code. Thanks for any help! Having coded using tables for the past 5 years, I'm coding my first site using pure CSS (hold back the laughter) ... I'm new to change. In any case ... I'm attempting to setup a homepage that has a fixed width and height. So far I've got a one-column header working fine. Beneath the one-column header I wish to have three columns with--dare I say it Web 2.0ish rounded corner cells--However the caveat is that these three cells need to all be a fixed height to go along with the page design. After two days of research, coffee, banging my head against my desk, I haven't been able to figure this one out. I am using an image at the top of each cell and an image at the bottom of each cell, but cannot get the cells to maintain a specific height. Any help would be appreciated: CSS: Code: /*<agl.folder "general">*/ body { color: #000; font 76%/1.5em "Lucida Grande", Verdana, Geneva, Helvetica, sans-serif; margin: 0; padding: 0; } .footer { color: #7f7f7f; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; text-align: center; } .footer a:link { color: #7f7f7f; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; text-align: center; } .footer a:visited { color: #7f7f7f; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; text-align: center; } .footer a:hover { color: #8da7fb; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; text-align: center; } .user_links a:link { color: #7f7f7f; font-size: 14px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; } .user_links a:visited { color: #7f7f7f; font-size: 14px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; } .user_links a:hover { color: #8da7fb; font-size: 14px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; } .text { color: #000; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; } .text a:link { color: #7f7f7f; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; } .text a:visited { color: #7f7f7f; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; } .text a:hover { color: #8da7fb; font-size: 12px; font-family: Helvetica, Geneva, Arial, SunSans-Regular, sans-serif; text-decoration: none; } a:link { color: #7f7f7f; text-decoration: none; } a:visited { color: #7f7f7f; } a:hover { color: #8da7fb; text-decoration: none; } /*</agl.folder>*/ #frame { width: 965px; margin: 0 auto; } #header { background-color: #fff; max-width: 965px; margin-top: 10px; } #content { position: relative; max-width: 965px; height: 200px; } #footer { background-color: #fff; position: absolute; top: 265px; width: 965px; } /*<agl.folder "box">*/ #portfolio { position: absolute; left: 0px; top: 0px; width: 475px; height: 200px; } .portbox { background-color: #ffffff; border: solid 1px #b6b6b6; padding: 4px; } .portbox:before { content: url(../images/homepage/portfolio.png); display: block; line-height: 0.1; margin: -5px -5px -5px; } .portbox:after{ content: url(../images/homepage/portfolio_bottom.png); display: block; line-height: 0.1; margin: -5px -5px -5px; } /*</agl.folder>*/ /*<agl.folder "methodologies">*/ #methodology { position: absolute; left: 482px; top: 0; width: 237px; height: 200px; } .methbox { background-color: #ffffff; max-height: 200px; border: solid 1px #b6b6b6; padding: 4px; } .methbox:before { content: url(../images/homepage/methodology.png); display: block; line-height: 0.1; margin: -5px -5px -5px; } .methbox:after{ height: 200px; content: url(../images/homepage/meth_bottom.png); display: table-row; margin: -5px; } /*</agl.folder>*/ /*<agl.folder "design">*/ #design { position: absolute; left: 726px; top: 0px; width: 235px; height: 125px; } .designbox { background-color: #ffffff; border: 1px solid #b6b6b6; padding: 4px; } .designbox:before { content: url(../images/homepage/design.png); display: block; line-height: 0.1; margin: -5px -5px -5px; } .designbox:after{ content: url(../images/homepage/design_bottom.png); display: block; line-height: 0.1; margin: -5px -5px -5px; } /*</agl.folder>*/ /*<agl.folder "solutions">*/ #solutions { position: absolute; left: 726px; top: 135px; width: 235px; height: 125px; } .solutionsbox { background-color: #ffffff; border: 1px solid #b6b6b6; padding: 4px; } .solutionsbox:before { content: url(../images/homepage/solutions.png); display: block; line-height: 0.1; margin: -5px -5px -5px; } .solutionsbox:after{ content: url(../images/homepage/design_bottom.png); display: block; line-height: 0.1; margin: -5px -5px -5px; } /*</agl.folder>*/ h2 { font-size: 1.5em; font-weight: bold; } HTML: Code: <!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=utf-8" /> <title>Test CSS</title> <link href="css/home_layout.css" rel="stylesheet" type="text/css" media="all" /> </head> <body> <div id="frame"> <div id="header"> <p align="right"><span class="user_links"><a href="(EmptyReference!)">Login</a> | <a href="(EmptyReference!)">Register</a> | <a href="(EmptyReference!)">Contact</a></span></p> <img src="images/tabs.jpg" alt="" height="43" width="965" border="0" vspace="3" livesrc="images/tabs.psd" /><img src="images/homepage/flash_header.jpg" alt="" height="275" width="965" border="0" vspace="5"/><br /> </div> <div id="content"> <div id="portfolio"> <div class="portbox"> <p align="center"><img src="images/homepage/screenshots.jpg" usemap="#screenshotsc1fd8d76" livesrc="images/homepage/screenshots.psd" alt="" height="137" width="426" / border="0"><map name="screenshotsc1fd8d76"><area shape="rect" coords="290,9,418,129" href="http://www.pilatesmovementnyc.com" alt="Fitness Center Pilates New York City" target="_blank" /><area shape="rect" coords="146,9,281,129" href="http://www.emmestyle.com" alt="Emme Super Model" target="_blank" /><area title="Healthy Living NYC" shape="rect" coords="3,11,130,132" href="http://www.healthylivingnyc.com" alt="Healty Lliving NYC" target="_blank" /></map></p> </div> </div> <div id="methodology"> <div class="methbox"> <p><img src="(EmptyReference!)" alt="" height="36" width="36" align="left" border="0" csnew="csnew" cssot="ps" livesrc="(EmptyReference!)" /><span class="text">Step one is the first step in this whole thing ok. so don't start yet until you know what the first step is</span><br /> <img src="(EmptyReference!)" alt="" height="36" width="36" align="left" border="0" csnew="csnew" cssot="ps" livesrc="(EmptyReference!)" /><span class="text">Step one is the first step in this whole thing ok. so don't start yet until you know what the first step is</span><br /> <img src="(EmptyReference!)" alt="" height="36" width="36" align="left" border="0" csnew="csnew" cssot="ps" livesrc="(EmptyReference!)" /><span class="text">Step one is the first step in this whole thing ok. so don't start yet until you know what the first step i</span>s<br /> <img src="(EmptyReference!)" alt="" height="36" width="36" align="left" border="0" csnew="csnew" cssot="ps" livesrc="(EmptyReference!)" /><span class="text">Step one is the first step in this whole thing ok. so don't start yet until you know what the first step is</span></p> </div> </div> <div id="design"> <div class="designbox"> <p></p> </div> </div> <div id="solutions"> <div class="solutionsbox"> <p></p> </div> </div> <div id="footer"> <div class="footer"> <a href="(EmptyReference!)">Home</a> | <a href="(EmptyReference!)">Portfolio</a> | <a href="(EmptyReference!)">Web</a> | <a href="(EmptyReference!)">Marketing</a> | <a href="(EmptyReference!)">Advertising</a> | <a href="(EmptyReference!)">Identity</a> | <a href="(EmptyReference!)">Hosting</a> | <a href="(EmptyReference!)">Profile</a><br> <a href="(EmptyReference!)">Design</a> | <a href="(EmptyReference!)">Technology</a> | <a href="(EmptyReference!)">Business Solutions</a><br> <a href="(EmptyReference!)">Contact Us</a> | L<a href="(EmptyReference!)">ogin to Your Account</a><br> Copyright 2007 Website Development Enterprises, LLc </div> </div> </div> </div> </body> </html> I am looking for some examples on making this layout: ----------HEADER---------- nav content - - - - - - - - - - - - ----------FOOTER0--------- The page needs to be 100% the height of the browser window with header at top, footer at bottom and the content/nav being a minimum height of enough to fill the screen vertically and should be expandable. Anyone got any pointers? Hello, Below is css I am trying to get to work and use as a template for a two column , header, and footer layout. I can get by with css, but an not a designer so can't figure out the exact specifics on how to do this. I've looked at many sites, make examples, javascripts included, but either they are to hard to fit into what I am looking for or just cause me to hit my head against the wall. I'm trying to get the left columns background to fill height 100% to the footer. The content's doesn't need it because the wrapper's background act's as its color. Also, if either column's height changes past the screen's height. I need the footer to move down too. Currently, I tested if the left-column and the main content goes past the screen's height it will just go past the footer. This works beacuse the css I have currently is making sure that the footer is always at the bottom. Code: <html > <head> <title>Untitled Page</title> <style type="text/css"> html { overflow-y: scroll; /* forces firefox scrollbar on */ } body { margin: 0; padding: 0; background: #F2F2F2; font: 100% Helvetica, Arial, sans-serif; height: 100%; } /* text-align: center; is so that the content will float in the center*/ div.wrapper { position: relative; width: 100%; height: 100%; text-align: left; margin-bottom: 42px; } div.header { position: relative; width: 100%; background-color: blue; border-bottom: 1px solid #CCCCCC; font-size: 1.5em; height: 42px; } div.footer { position: absolute; bottom: 0; width: 100%; background-color: blue; border-bottom: 1px solid #CCCCCC; font-size: 1.5em; height: 42px; } div.wrapper .left { width: 215px; float: left; background: yellow; height: 100%; min-height: 100%; } div.wrapper .right { width:auto; margin-left: 215px; } div.wrapper .tabs { background: green; height: 35px; } div.wrapper .mainContent { } </style> </head> <body> <div id="header" class="header">header</div> <div class="wrapper"> <div id="leftColumn" class="left">left content</div> <div class="right"> <div class="tabs">Tabs go here</div> <div class="mainContent">Main content goes here</div> </div> </div> <div id="footer" class="footer">footer</div> </body> </html> Any help would be appreciated thanks in advance. Risso |