简体   繁体   中英

HTML: How do I make an image to be above everything in a webpage

In this page, I want the "where we've been" to be above everything and fixed to that position on the page so that if you scroll you don't see it.

I'm a noob and the code's a mess I know, but any quick fixes? Line 126 is where the picture is coded.

Thanks

You can use CSS

<div style="position: relative; left: 0; top: 0;">
     <img src="img.jpg" style="position: absolute; top: 30px; left: 70px;"/>
</div>

The "TOP" will make the image be ontop of everything. And you can also set your position by changing the top: 30 and left: 70.

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