-1

I need box-shadow only in bottom of block and width need to be 100%. Box-shadow works if there is width with px but not works with 100% width. What is the problem?

R0b001
  • 3
  • 1

3 Answers3

0

Can you post the code that is not working for you? A box-shadow on an element with 100% width should work just fine.

div{
  background: silver;
  box-shadow: 5px 5px 5px blue; 
}
<div>
  test
  </div>
JasperZelf
  • 2,731
  • 1
  • 22
  • 34
0

You can use something like below CSS.

   box-shadow: 0 8px 6px -6px red;

        
div{
  background: silver;
  box-shadow: 0 8px 6px -6px red;
}
<div>
  Demo
 </div>
Pushprajsinh Chudasama
  • 7,772
  • 4
  • 20
  • 43
0

It would make it easier for everyone if you shared your code.

808Squad
  • 11
  • 5