CSS Box/shadow overlapping issue z-index

前端 未结 2 667
失恋的感觉
失恋的感觉 2020-12-20 16:32

Please take a look at the code snippet: http://codepen.io/anon/pen/JItLa

I\'m trying to show 2 rows of blocks with different amount of items in a row. The hover even

2条回答
  •  不知归路
    2020-12-20 17:12

    Add the following CSS, if you do not need the gap between the divs.

    .wrapper {
      text-align: center;
      font-size: 0px;
    }
    .tile,
    .tile2 {
      display: inline-block;
    }
    .tile:hover,
    .tile2:hover {
      z-index: 1;
      position: relative;
    }
    .header {
      font-size: 12px;
    }
    `
    

提交回复
热议问题