CSS placing one image on top of another

后端 未结 7 2104
闹比i
闹比i 2020-12-10 11:17

I am working on CSS design template.

I have two images imageOne and imageTwo.

Both are position: relative because if I

7条回答
  •  暖寄归人
    2020-12-10 11:45

    I think you want to wrap both of them in a div with position:relative

    Then give both of the images an absolute position

    .image {
          position: absolute;
          width: 100px;
          height: 100px;
          border: 1px solid red;
    }
    

提交回复
热议问题