How to align a div in the lower right corner of a webpage, even if the content is smaller?

I have this extremely simple popup page here: http://iph0wnz.com

It has the main graphics in the middle, and then my "a". logo in the lower right corner. I want this logo aligned to the bottom right of the entire page, which means that if there is a lot of text content on the page, it appears after all this (i.e., it is not a hover at the top), but if there is currently less content - as it is now, then it should be aligned to the very bottom of the screen, not immediately after the content.

I will try to give a text example, as I saw in How to align the contents of a div at the bottom? :

    -----------------------------
    | less content, no scroll |
    | |
    | |
    | |
    | a. |
    ----------------------------- (screen height)

and

    -----------------------------
    | more content, yes scroll |
    | the quick brown fox jump- |
    | ped over the lazy dog ​​an- |
    | d she sells sea shells on |
    | the sea shore and some o- |
    | ther random text is put | (screen height)
    | here so there is a scroll |
    | bar because the content |
    | is too much for one scre- |
    | en to show. okay, I think |
    | that is enough. |
    | a. |
    -----------------------------

In addition to this question related above, I also examined How to make the DIV block extend to the bottom of the page, even if it has no content? but that didn't work for me either.

, , , .

, , - .

. JavaScript jQuery, .

+5
5

:

* { margin: 0; }
html, body { height: 100%; }
/* the bottom margin is the negative value of the footer height */
.wrapper { min-height: 100%; height: auto !important; height: 100%; margin: 0 auto -142px; }
/* .push must be the same height as .footer */
.footer, .push { height: 142px; }

EDIT: , , , google " "

+5

- , :

position: fixed;
bottom: 0;
right: 0;

div , ( background-attachment: fixed;). , , , , . , IE6.

+4

, , -, . : , div, . CSS:

    div 
        text-align:center

    table 
        position:absolute;
        top:63%;
        left:80%;
        text-align:left;
        background:rgba(0,0,0,0.4);

, HTML, , . , , , OP , OP , , : -)

, / . , , .

+1

: javascripts screen.height.

, , . , jQuery, .

0

JavaScript: , - ,

position:absolute;
top:<your document height>

div . . , .

0

All Articles