Box-shadow trimmed in CSS columns in Chrome

后端 未结 9 2292
难免孤独
难免孤独 2020-12-15 17:38

I want the block elements inside CSS columns to have box shadow. The following, simplified code renders as expected in IE10 and Firefox 21, but in current C

9条回答
  •  孤街浪徒
    2020-12-15 17:57

    Here's a simple work-around for Chrome: For your yellow blocks, just change the width and the margin. For the drop-shadow to show up you want to make sure there is some margin room around the block.

    width: 80%;
    margin: 1em 10%;
    

    http://jsfiddle.net/dPg2n/1/ --- Works in both Chrome 31 and FireFox 10.0.2.

提交回复
热议问题