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

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

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.