473,383 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Content Spilling Over Footer Div

3
The content div goes over the footer div even though I have made the footer div clear both. I'm pretty new to CSS layout and am doing something wrong. Can you see what it is? I had tried to use the Sticky Footer method (http://ryanfait.com/sticky-footer/) and couldn't get that to work, so I removed that and maybe I messed up my code or css file, but I can't find it. Basically, I just want to have a footer div push below my content, but the content goes over my footer. I've tried several things (including overflow options) but nothing is working.

Here is the DWT (Dreamweaver template) file with the divs:
http://www.celestiacorp.com/alca/Templates/main.dwt

Or an HTML file using that template:
http://www.celestiacorp.com/alca/about_alain_locke.html

Here is the stylesheet file:
http://www.celestiacorp.com/alca/style.css
Sep 19 '07 #1
4 7128
yevri
3
Just noticed that when I view it in IE 6 on windows, it is fine. It's also fine in the Dreamweaver design mode view, but when I look at the page in Safari 3.03 or Firefox Mac 2.x or Firefox Windows 2.x, the content goes over the footer.

I remember reading about an IE bug with clearing floats, but in this case it's a feature I guess.

Can you see why this would be?
Sep 19 '07 #2
PaulVS
13
Hi there,

To resolve this you must remove the height of 400px on the div#content_min.

When you set a height all browsers except IE will stick to that height (even if there is more content then those 400 pixels) and no clear will solve this. Always be carefull placing heights on block elements.

Greetings,

Paul
Sep 19 '07 #3
yevri
3
Thanks a lot, Paul. That did it. The reason I had the 400 height in the content_min div is because I wanted to make sure that no matter how much content I had in the content div, the background div would stretch to at least cover the nav area (so it's white colored background would be behind the nav).

Is there a way to make that background div stretch down to the footer no matter how much content is in the content div? Just realized, I need to put a div INSIDE the "all" div and make it clear both - I had my footer clear both, but it wasn't inside the same div as the content so that didn't push the background div down.

Thanks!

Brian
Sep 19 '07 #4
PaulVS
13
Thanks a lot, Paul. That did it. The reason I had the 400 height in the content_min div is because I wanted to make sure that no matter how much content I had in the content div, the background div would stretch to at least cover the nav area (so it's white colored background would be behind the nav).

Is there a way to make that background div stretch down to the footer no matter how much content is in the content div? Just realized, I need to put a div INSIDE the "all" div and make it clear both - I had my footer clear both, but it wasn't inside the same div as the content so that didn't push the background div down.

Thanks!

Brian
You can use "min-height" for firefox and safari to give a DIV a minimal height. IE doesnt support this but there you can use the height.

Make sure you use the height for IE only, you can do this by conditional comments explained here: http://www.quirksmode.org/css/condcom.html

Good luck :)

edit: A faster way might be this implementation of min-height:
http://www.dustindiaz.com/min-height-fast-hack/

You dont need conditional comments with this
Sep 19 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Stanimir Stamenkov | last post by:
Looking through the draft I still can't figure out how one could (is it possible to) group several elements and style a generated containing block for the group. This is much similar to a typical...
7
by: Matt Kruse | last post by:
This is a typical layout, but I have specific requirements. I'm trying to figure out a) if it's possible to meet the requirements and b) if so, how. +---------------+ | header |...
3
by: samuelberthelot | last post by:
Hi, In one of my database's tables I have a Header and Footer field, which content is used to create the header and footer of my Master page. Part generated from Header field: <html > <head...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
11
by: Grischa Brockhaus | last post by:
Hi, I'm trying to produce a div layout containing a header on the top with fixed height, a footer on the bottom using fixed height and a content layer using what's left of the browsers window. ...
8
by: Amit | last post by:
I have a master page and a content page but the stylesheet isnt getting applied like how it looks in visual studio design view. The master page is defined like this: <%@ Master Language="VB"...
3
by: autospanker | last post by:
Ladies and Gentleman, I have been having this problem that has been driving me insane. I have a website that when viewed in Firefox first, the content in the body area is pushed down. Then when...
1
by: KoosHopeloos | last post by:
L.S., I'm trying to make a layout which is completely fixed in width and height if needed by using three divs rows (header, content, footer) which have each 3 div again to be able to play around...
7
by: Big Moxy | last post by:
site - http://projects.zanalysts.com/hearingaids1000/default.aspx css - http://projects.zanalysts.com/hearingaids1000/css/styles.css js -...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.