简体   繁体   中英

How to fix an image to the bottom right with resizing window?

Hello I'm trying to fix an image to the very bottom right of the page and it shows fine using css:

.logo img{
    position: absolute;
    bottom: 0;
    right: 0;
}

but when resizing the window size, the image goes on top of the content, how to fix that please?

take a look: http://ryanfait.com/resources/footer-stick-to-bottom-of-page/

then use float:right on the image

Use a negative 'z-index' on the image in your CSS, like z-index: -1;

This will pull the image underneath the content.

See my fiddle here: http://jsfiddle.net/davidpauljunior/WzwA5/2/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM