Jump to content

I need a little help with a floating div, or making it static.


Shaun

Recommended Posts

Hi there,

I was wondering if someone could help me out here.

 

on my page http://shacow.com/dev.html

I have an image that is supposed to be fixed to the bottom of my main div,

 

the idea is, when their is more text on that page, and it become scrollable the image will stay in its place and the text will scroll without the image moving.

 

but for some reason that isnt working.

 

ive tried

 

#foldingathomeprogress {

text-align: center;

display: block;

position: fixed;

 

}

 

I hope someone can help me because this is driving me insane

 

you can view my style sheet at http://shacow.com/shacow.css ???

 

thank you all, Shaun

if you move the div containing the image in, so its no longer at the bottom of the text, but contained in the div holding the copyright text it should work, like so

 

<div id ="legalnotice"><a href="legalnotice.html">© Copyright Shaun Cowley Photography. All rights reserved.</a>
<div id="foldingathomeprogress"><img src="./fahbar/fahunitprogress.php" alt="Folding@Home Work Unit progress." /></div>
</div>

Hi Liam, thanks for the reply but I want the div that has the image to be placed where it currently is, not in the legal notice. .. If you load the page without scrolling you will see where i want it placing and where it should remain while the rest of the page scrolls.

 

I hope this helps,

 

thank you, Shaun

Thank you liam. I have applied the changes to the link above and it seems to be working pretty good. The only problem is that the image seems to be placed to far to the right for some strange reason.. I was hoping to have it entered. also, do you know how to do the padding?

 

many thanks, Shaun

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.