Can anyone tell me why when I have a full page of text on my web page the footer stays nicely put at the bottom. But if I remove some text and there is only a small amount of content, the footer moves up and the left column extends down below it. This is driving me crazy…
The problem is that you have absolutely placed the sidebar (#linklist) and it is therefore removed from the flow and the footer will behave as if it doesn’t exist. That’s why you can’t use absolute positioning for structural elements like that because you can never account for them unless they are a fixed height which is to be avoided anyway.
You need to float the linklist and then create a container for the right column and float that also.
In the simplest form you would need this structure.
Remove the height:100% from your container because that will also stop it growing as the height will be capped at viewport height. Also remove all those silly voice family hacks as they were meant to hack for IE5 and you aren’t catering for it correctly anyway so remove them.
Your ie6 file is missing and your conditional comments are wrong.
You have called your left colum linklist and given the element a classname of menu_list yet you still continued to use divs instead of the “list” that the menu should have been. There is no need for the classes on every element in that column as nested lists would have allowed you to target all elements without using extra classes.
phew… ‘gotta love’ those pre made templates…lol.
I had to make a few corrections. I fixed some things with your script comment and your conditional comments, also got amalgamated that clearing div for the footer (not needed). You had your container height set to 100%… and your footer set to position RELATIVE instead of absolute…
I would seriously reexamine the markup semantics… you menus should be based on ULs, I think your #pageheader DIV is extraneous and could be streamline further, there are a few other issues, but lets just solve the footer for now.
and for your markup ( replace EVERYTHING AFTER and including the BODY tag):
<body>
<div id="container">
<!--this is where INTRO div started-->
<div id="pageHeader">
<h1> <img src="images/headerexperiement.jpg" alt="" width="840" height="70" /></h1>
</div> <!--end of page header-->
<div id="presentationbox">
<div class="slideshow">
<img src="../images/building.jpg" width="400" height="300" class="first" />
<img src="../images/weightroom.jpg" width="400" height="300" />
<img src="../images/taichi.jpg" width="400" height="300" />
</div> <!--end of slideshow-->
<p class="p2">This is the text in the ruler</p>
<div id="column2_buttonbox"><img src="images/4_special_buttons.jpg" width="181" height="300"
alt="internet buttons" />
</div><!--BUTTONBOX-->
</div><!--PRESENTATION BOX-->
<div id="newsitem1">
<h3>TOPIC 1</h3>
<p class="p1">This will be the first paragraph in the document and I am not sure what I will be typing in here but This will be the first paragraph in the document and I am not sure what I will be typing in here butThis will bThis will be the first paragraph in the document and I am not sure what I will be typing in here butThis will be the first paragraph in the document and I am not sure what I will be typing in here bute the first paragraph in the document and I am not sure what I will be typing in here but</p>
</div> <!--newsitem1 end-->
<div id="supportingText">
<div id="newsitem2">
<h3>TOPIC 2</h3>
<p class="p1">This will be sometype of newsitem that I will be placing in this spot.This will be sometype of newsitem that I will be placing in this spot.This will be sometype of newsitem that I will be placing in this spot.This will be sometype of newsitem that I will be placing in this spot.This will be sometype of newsitem that I will be placing in this spot.This will be sometype of newsitem that I will be placing in this spot.This will be sometype of newsitem that I will be placing in this spot.This will be sometype of newsitem that I will be placing in this spot.</p>
</div><!--newsitem2 end-->
<div id="newsitem3">
<h3>TOPIC 3</h3>
<p class="p1">text text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text text</p>
<p class="p1"> text text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text texttext text text text text</p>
</div> <!--newsitem3 end-->
<div id="newsitem4">
<h3> </h3>
</div>
<!--newsitem4 end-->
<div id="newsitem5">
<h3> </h3>
</div><!--newsitem5 end-->
<!--this is were intro div ended - put back if needed-->
</div><!--supportingtext end-->
<div id="linkList">
<div id="linkList2">
<div id="navcap"><img src="images/navigation-cap.gif" width="200" height="18" alt="navigation cap" /></div>
<div id="firstpane" class="menu_list">
<p class="menu_head">Home</p>
<div class="menu_body"><a href="#">Link-1</a></div>
<p class="menu_head">LifeCare</p>
<div class="menu_body">
<a href="#">Independent Living</a>
<a href="#">Assisted Living</a>
<a href="#">Health Services</a>
<a href="#">Other Services</a>
</div>
<p class="menu_head">Health Services</p>
<div class="menu_body">
<a href="#">24 Nursing Care</a>
<a href="#">Health Center Nursing Care</a>
<a href="#">Apartment Nursing Care</a>
<a href="#">Physical Therapy</a>
<a href="#">Dietician</a>
<a href="#">Companions</a>
</div>
<p class="menu_head">Amenities</p>
<div class="menu_body">
<a href="#">Dining Services</a>
<a href="#">Transportation</a>
<a href="#">Movie Theater</a>
<a href="#">Internet Cafe/Coffee Shop</a>
</div>
<p class="menu_head">Recreation/Wellness</p>
<div class="menu_body">
<a href="#">Programs</a>
<a href="#">Pool/Spa</a>
<a href="#">Salon</a>
<a href="#">Massage Therapy</a>
<a href="#">Volunteer</a>
</div>
<p class="menu_head">About Oaknoll</p>
<div class="menu_body">
<a href="#">Mission Statement</a>
<a href="#">History</a>
</div>
<p class="menu_head">LifeCare Services</p>
<div class="menu_body">
<a href="#">Maintenance</a>
<a href="#">Housekeeping</a>
<a href="#">Laundry</a>
<a href="#">Technology</a>
</div>
<p class="menu_head">Employment</p>
<div class="menu_body">
<a href="#">Current Openings</a>
<a href="#">Application</a>
<a href="#">Volunteering</a>
</div>
<p class="menu_head">Contact Us</p>
<div class="menu_body">
<a href="#"></a>
</div>
<div id="ldirector">
<h3>Meet our Director</h3>
<img src="images/Pat_Heiden.png" alt="" width="67" height="200" />
<p>Patricia Heiden ~ <br />
A Director With A Dream. <br /><br />
Click here to learn more...</p>
</div> <!--director end-->
<div id="ladministrator">
<h3 class="administrator">Meet our Administrator</h3>
<img src="images/Steve_Roe.jpg" width="66" height="88" alt="Chris Roe" />
<p>Meet Steve Rowe, Our Administrator</p>
</div> <!--administrator end-->
</div>
</div><!--Linklist end-->
</div> <!--Linklist2 end-->
<div id="footer">
<p>This is the footer info</p>
</div>
</div><!--container end-->
</body>
</html>
Ray you should remove the voice family hack rules as its a hack for IE5 but what’s worse is that even if support for ie5 is required then the manner it has been implemented above will ensure that ie5 is even more broken than it should be. IE5 will miss all the rules following the hack and all the rules in the whole next rule block as well.
Thank you all for your help and support on this. I was called away for a family issue, but am back and going to work on the site tonight and incorporate (and learn from) your input.