Aligning css arrow boxes

前端 未结 6 1923
深忆病人
深忆病人 2021-01-29 02:08

My question is similar to this question: Arrow Box with CSS But instead of only 1 box I need to align several boxes. And still be able to see the arrow on all boxes.

In

6条回答
  •  梦毁少年i
    2021-01-29 02:39

    Just add a z-indexto your .arrow:before. Here is the live version http://jsfiddle.net/LHHzt/13/

    .arrow:before {
        content: '';
        position: absolute;
        top: 0px;
        left: 129px;
        width: 0;
        height: 0;
        z-index:2;
        border: 50px solid transparent;
        border-left: 12px solid #999;
    }
    

    Works with as many box as you want :)

提交回复
热议问题