Positioning and overlaying image on another image

前端 未结 4 883
挽巷
挽巷 2020-12-24 12:35

See how the tiny Facebook icon is positioned in the lower right-hand corner over another image?

\"enter

4条回答
  •  死守一世寂寞
    2020-12-24 13:06

    Here's a simple example using divs instead of images: http://jsfiddle.net/sqJtr/

    Basically, you put both of your images in the same container. Give the container a position that isn't static (in my example, relative). Then give the overlay image position: absolute and position it however you want using bottom and right.

提交回复
热议问题