I am branding several sites I recently created with an image that reacts to hovering and links back to my own site. I'm dynamically inserting the markup and CSS with a jQuery append function that absolutely positions my logo in the bottom righthand corner of the client's site, and it's working great for the most part. However, I need to enhance that positioning to accommodate two different scenarios, and I'm fairly stumped.
If the elements on the site do not reach the bottom of the window, I want the logo in the bottom righthand corner, which is what currently happens. This is great.
If the elements do reach the bottom of the page or beyond, forcing a scrollbar, I want the logo positioned 40px beneath the bottom of the lowest reaching DIV, still in the bottom righthand corner of the page (almost as if it were part of the normal document flow, rather than absolutely positioned). This is what I can't figure out.