Stopping content from getting pushed down due to overlap in Bootstrap

前端 未结 2 1451
孤城傲影
孤城傲影 2021-01-28 11:53

In a previous question I was able to allow an image in one row overlap the contents below it. However, I realized that now the text and other content that is being overlapped is

相关标签:
2条回答
  • 2021-01-28 12:14

    You can add the following styles below to make it work.

    CSS

    .thumbnail{
        position:absolute;
        z-index:100;
      }
    

    Demo

    0 讨论(0)
  • 2021-01-28 12:31

    If you add the following CSS, the image should float overtop without pushing any contents down.

    #overlap .thumbnail {
      position: absolute;
      z-index: 100;
    }
    

    Updated: http://www.bootply.com/120760

    0 讨论(0)
提交回复
热议问题