954,591 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Down, dino! Footer just won't stay put

Hi, I am working with a friend on a small pilot website and am having difficulty making the footer stay put. Any help is appreciated. Thank you!

https://dl.dropbox.com/u/10563012/fall2010/Expression/psThreeA/default.htm

Another problem is in the logo. Apparently, it is not ok to put tags inside tags. I want the whole div to be a link. How do I solve this without removing the tags in the div?

3825
Newbie Poster
23 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

Hi

In IE7, FF and Chrome, your footer is at the bottom. So to me it seems ok.

As for linking your logo, I can help you with.

You nees to link it in your style sheet, where it says

background: url("h1.png") no-repeat scroll left top transparent;
float: left;
height: 99px;
margin-top: 10px;
width: 219px;


There you can ad this

background-image:url(http://yourlink.com);


Hope this helps

Kraai
Senior Poster
3,981 posts since Feb 2008
Reputation Points: 76
Solved Threads: 87
 

For your numbered list to display correctly in Chrome, increase the height of your quickSummary bar. This will keep the list pushed to the right. <a href="#"><h1>proofseeker</h1></a> is not aloud, but <h1><a href="#">proofseeker</a></h1> is.

Your footer displays consistently in Firefox, Safari, Chrome, and Opera. Could you describe the problem, what browser it's occurring in, and/or provide a screen shot of the problem?


Regards, Arkinder

Arkinder
Posting Pro in Training
454 posts since Nov 2010
Reputation Points: 113
Solved Threads: 59
 

It works for default.htm but it is messed up in all other pages. I am stumped.

@kraai, I thought background-image: url( is how I link to the background image. I did as you said and now the logo vanished. What could I be doing wrong?

http://proofseeker.comxa.com/

3825
Newbie Poster
23 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

It's moving around because you have no content to push it down. Give your container division a set height (px, em, etc.)

Or you can give your footer division a margin-top.

Regards, Arkinder

Arkinder
Posting Pro in Training
454 posts since Nov 2010
Reputation Points: 113
Solved Threads: 59
 

You had this to display the image.

background: url("h1.png") no-repeat scroll left top transparent;


You ad this to link the image:

background-image:url(http://yourlink.com);


Ps. I see your site on your last post linked is off.

Kraai
Senior Poster
3,981 posts since Feb 2008
Reputation Points: 76
Solved Threads: 87
 

@arkinder, should I then give a fixed height for container in px? or can it be in percentage?

@kraai, I just saw that myself. Apparently, they are checking my site for malicious content. Guess I need to dump the site to dropbox again.

3825
Newbie Poster
23 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

Percentage just depends. If you want the height to be dynamic use em.

Arkinder
Posting Pro in Training
454 posts since Nov 2010
Reputation Points: 113
Solved Threads: 59
 

to stay put

#footer { height: 150px;margin-top: 0px;margin-bottom: 0;text-align: right;clear: both;	background-repeat:no-repeat;background-image: url('bg_body_2.jpg');background-repeat: no-repeat;	}


could include instructions to keep it fixed and at the bottom of the page

#footer { height:150px;margin-top:0;margin-bottom:0;text-align:right;clear: both;background-repeat:no-repeat;background-image:url('bg_body_2.jpg');bottom:0;position:fixed;}


zero px is not valid in css, you missed one at 'margin-top' in your cleanup.

Production code is not indented or formatted, whitespace is useful for those developers who have not discovered code highlighting editors yet, but useless in production code it just adds extra download time, often 40-50% of html css js files is whitespace, that the browser doesnt need

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

You had this to display the image.

background: url("h1.png") no-repeat scroll left top transparent;

You ad this to link the image:

background-image:url(http://yourlink.com);

Ps. I see your site on your last post linked is off.


Please ignore this BS
background is a shorthand entry for all the separate css properties applicable to background, and does NOT link the image body {background:#ffffff url('img_tree.png') no-repeat right top;}

almostbob
Posting Sensei
3,149 posts since Jan 2009
Reputation Points: 571
Solved Threads: 376
 

How classy of you.

This isn't production code, and there are compression programs available to remove whitespace. Readability is important for debugging, scanning, and reading in general. This is a forum, and considering that we read 30% slower on a computer, I'd rather not waste my time reading tag/selector soup for a disregarded end tag or forgotten semicolon. Whitespace does not belong in the final produced code, but it has its place in web design.

You've only been on this forum for a year, but just in case you forgot, here's a little reminder.

Regards, Arkinder

Arkinder
Posting Pro in Training
454 posts since Nov 2010
Reputation Points: 113
Solved Threads: 59
 
Please ignore this BS background is a shorthand entry for all the separate css properties applicable to background, and does NOT link the image body {background:#ffffff url('img_tree.png') no-repeat right top;}

And yet, we fail to provide the correct solution to link a background image to be clickable?

To the original poster:

Please see this solution to make the background image clickable via CSS, and hope this helps you.

Kraai
Senior Poster
3,981 posts since Feb 2008
Reputation Points: 76
Solved Threads: 87
 

@Arkinder I am still learning and don't understand em all too well. I am experimenting and learning as I go.

@almostbob Thank you for your help. I was not going for the footer look but then I realized this forum was doing pretty much the same thing with the purple bar at the bottom. Thanks. +1

3825
Newbie Poster
23 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

Basically the bottom line is, to be able to have your pages without content display the same as your pages with content, you're going to have to do something like this .

Regards, Arkinder

Arkinder
Posting Pro in Training
454 posts since Nov 2010
Reputation Points: 113
Solved Threads: 59
 

@Arkinder that looks good. I will read into it. I am learning a lot from this thread (:

3825
Newbie Poster
23 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: