CSS Shadows all four sides of div

前端 未结 11 1545
青春惊慌失措
青春惊慌失措 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 11:48

    I cant see your picture now, but for all side shadows I use the below code:

    box-shadow: 0 0 5px 0 #000;
    

    Instead of the 5px use your size.

提交回复
热议问题