How can I add a box-shadow on one side of an element?

后端 未结 13 1147
萌比男神i
萌比男神i 2020-11-28 17:34

I need to create a box-shadow on some block element, but only (for example) on its right side. The way I do it is to wrap the inner element with box-shado

13条回答
  •  伪装坚强ぢ
    2020-11-28 18:02

    This site helped me: https://gist.github.com/ocean90/1268328 (Note that on that site the left and right are reversed as of the date of this post... but they work as expected). They are corrected in the code below.

    
    
        
            Box Shadow
    
            
        
        
            

提交回复
热议问题