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?
Asked
Active
Viewed 109 times
3 Answers
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