Jump to content

Recommended Posts

Posted

Is there a css scheme for positioning <div id="footer"> so that it will lay at the "absolute" bottom of the page, with every other element above it?

 

Re: www.biom.net: In order to keep my footer from rising up and covering content in my main section, I've had to add about 25 <br/> tags at the bottom of the "leftbar" page element. (And even I know in this age of CSS this is not the most "elegant" way to position page elements :blink:

 

(Note: Right now all page elements are working fine on IE6/MyIE2 (Windows), not so good on Firefox (Windows: footer is covering icon graphic). And on Mac it's like herding cats: Safari, Firefox, and Netscape are positioning the footer at different levels.)

 

Can anyone offer some suggestions for anchoring a footer to the bottom of a page?

 

THANKS!!!

Posted

could try this:

 

#footer{

position: absolute;

bottom: 0px;

left: 0px;

width: 100%;

z-index: 1;

background-color: #000000;

margin: 0px;

}

Posted

Hello ramone_kalsaw,

 

Without know the rest of your CSS/HTML its hard to say.

 

The above solution by jayson doesn't work if the content extends off the screen (I believe)

 

If you can give us a link i will take a look

 

JimE

Posted
Hello ramone_kalsaw,

 

Without know the rest of your CSS/HTML its hard to say.

 

The above solution by jayson doesn't work if the content extends off the screen (I believe)

 

If you can give us a link i will take a look

 

JimE

The link is at www.biom.net.

 

THANKS for taking a look at this!!!

Posted

I think you could do it by adding an equally sized empty div, height sized to match the footer. This would be relatively positioned so that your absolutely positioned footer would fit on occassions where your content stretches the page out.

 

But you'd have to ask yourself why you wanted to do it this way when you could just relatively position the footer and set a minimum height for the div containing your content. The relative positioning kicks in when the content is long, the minimum height for the content div kicks in when it's not.

Posted
Hello ramone_kalsaw,

 

Without know the rest of your CSS/HTML its hard to say.

 

The above solution by jayson doesn't work if the content extends off the screen (I believe)

 

If you can give us a link i will take a look

 

JimE

 

 

Hey, I tried :)

Posted

Hello,

 

Hey Jayson, never mind, its best to have tried and failed then not tried at all, most of the stuff I have learnt has been through trail and error .

 

Let us know how its gone Ramone

 

Nice link Jim, another one to add to my bookmark list!

 

JimE

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...