CSS Shadows all four sides of div

前端 未结 11 1534
青春惊慌失措
青春惊慌失措 2021-02-08 11:18

I want to achieve this in CSS - not CSS3 as I want it to be supported by all browsers

ie a div containing content, with the shadows on every side. The top area will be

11条回答
  •  甜味超标
    2021-02-08 12:00

    You can place the following code in the div in order to drop shadows on all four sides.

    -webkit-box-shadow: 0 0 10px rgba(0,0,0,.1);
    box-shadow: 0 0 10px rgba(0,0,0,.1);    
    

提交回复
热议问题