Can you layer pictures on top of each other on a webpage?

后端 未结 7 2002
再見小時候
再見小時候 2020-12-23 23:34

I want to build a website that is a \"dress up\" game where you can click on different accessories and they will layer on top of each other.

Because it\'s a little d

7条回答
  •  忘掉有多难
    2020-12-24 00:07

    Using a combination of css properties you can achieve what you're after.

    To position the accessories in the correct place you can set the position to absolute and use absolute co-ordinates to specify their position.

    To set the order in which they display you can use the z-index property to "stack" them up.

    Check out:

    http://www.html.net/tutorials/css/lesson15.php

    For some detailed info on it.

提交回复
热议问题