Graphic Design Forum and Web Design Forum  

Go Back   Graphic Design Forum and Web Design Forum »Web Design Forum »CSS Forum

Notices

CSS Forum Cascading Style Sheets (CSS) and XHTML Forum


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2007, 04:08 AM
dave@wickmanstudios's Avatar
Junior Member
 
Join Date: Apr 2007
Posts: 25
Default CSS Footer

Alright well I have been working on getting this footer to appear either at the bottom of the browser window or the bottom of the Web page content – whichever is visually lowest just like it is found on here.

So I went through the entire thing, cleaned up my CSS and tried to get everything to work, but the footer just floats at the bottom of the browser window, but when the content goes beyond the window it just stays in that same position.
I hope it is just something simple I am glossing over, but any help would be appreciated. Cheers.

I have uploaded it, so that you can see the live design.

Main Page

CSS
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote

  #2 (permalink)  
Old 10-08-2007, 07:53 AM
PR Design's Avatar
CSS Wizardry -- Not Gay!
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 5,848
Default

Try adding
Code:
clear:both;
to your footer code
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #3 (permalink)  
Old 10-08-2007, 08:30 AM
Carrotnapper's Avatar
The Age Of The Understatement
 
Join Date: Feb 2007
Location: Filey, North Yorkshire
Gender: Male
Posts: 1,578
Default

try removing:

position: relative;

do you really need all of that css
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #4 (permalink)  
Old 10-08-2007, 08:33 AM
PR Design's Avatar
CSS Wizardry -- Not Gay!
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 5,848
Default

Well that's my footer CSS:
Code:
#footer{
	clear:both;
	padding-top:2px;
	height:225px;
	color:#FFFFFF;
	background-color:#111111;
	background:url(images/footerbglrg.gif);
	border-top:5px solid #0099ff;
	color:#FFFFFF;
	font-family:"trebuchet ms", Verdana, Arial, Helvetica, sans-serif;
	font-size:smaller;
}
And that gives the result you're after.
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #5 (permalink)  
Old 10-08-2007, 01:03 PM
dave@wickmanstudios's Avatar
Junior Member
 
Join Date: Apr 2007
Posts: 25
Default

awesome... seems to be working now!
Thanks for the help. Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #6 (permalink)  
Old 10-08-2007, 01:05 PM
PR Design's Avatar
CSS Wizardry -- Not Gay!
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 5,848
Default

Happy to help :)
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #7 (permalink)  
Old 10-08-2007, 03:02 PM
dave@wickmanstudios's Avatar
Junior Member
 
Join Date: Apr 2007
Posts: 25
Default

i tried some of the suggestions and it works for the most part, but when i leave the margin-top commented out (thinking that may be the problem), the footer sits just below the page (both in IE and firefox), but if I uncomment it, it just goes back up to the higher position in IE and is perfect in firefox...

This is how it is now (good in firefox, but not perfect in IE):

Code:
#footer{
margin-top: -3.65em;
margin-bottom:0px !important;
clear:both;
padding-top:2px;
height:45px;
color:#FFFFFF;
background: #0055a5 url(images/footer.gif) repeat-x;
}
any ideas on how to get this to function correctly in IE?
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #8 (permalink)  
Old 10-08-2007, 03:07 PM
PR Design's Avatar
CSS Wizardry -- Not Gay!
 
Join Date: May 2007
Location: Yorkshire, England
Gender: Male
Posts: 5,848
Default

I've just noticed that in FF the footer text isn't selectable, nor can you right click>view background image. It bet the problem is linked to this...
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
  #9 (permalink)  
Old 10-08-2007, 03:27 PM
dave@wickmanstudios's Avatar
Junior Member
 
Join Date: Apr 2007
Posts: 25
Default

Quote:
Originally Posted by PR Design View Post
I've just noticed that in FF the footer text isn't selectable, nor can you right click>view background image. It bet the problem is linked to this...
I think that is because the

margin-top: -3.65em;

moves the bar from it's current position up by 3.65em, but looks like just visually and the actual selection is underneath (and not accessible) in FF.
So, I commented out this line and it drops the bar just below the visible line of the browser window and the text is able to be selected and the the bgimage viewable (both IE and FF)...
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati Share This Article & VoteReddit! Wong this Post!Stumble this Post!RSS Share on FacebookForum Netvibes Page
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Licences to add in footer macca11 General Web Design Forum 0 20-04-2008 10:24 PM
align footer bottm? philjohns CSS Forum 24 31-01-2008 09:21 PM
IE7, dynamic content and misplaced footer the_bee Graphic Design and Web Design Help 0 22-12-2007 03:52 PM
How to get my footer to stretch ...Gav CSS Forum 6 16-12-2007 11:56 PM
35 website footer designs, trends and styles Graphic Design Links Graphic Design Links 0 25-10-2007 07:50 PM


All times are GMT. The time now is 05:38 PM.



Estetica Design Forum's Privacy Policy
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0