Reputation: 15
Im using unbounce.com and created a shadow with the custom CSS option. The image from the section underneath is overlapping the shadow from the header element. What do I need to do to change this issue?
this is the code im using to create the shadow:
#lp-pom-block-11-color-overlay {
-webkit-box-shadow:
0 0.063rem 0.313rem rgba(0,0,0,0.2),
0 0.188rem 0.25rem rgba(0,0,0,0.12),
0 0.125rem 0.25rem rgba(0,0,0,0.14)
}
Upvotes: 1
Views: 295
Reputation: 1192
Make z-index
value of #lp-pom-block-11-color-overlay
bigger than below div. z-index
property always work with position
except static
#lp-pom-block-11-color-overlay {
-webkit-box-shadow:
0 0.063rem 0.313rem rgba(0,0,0,0.2),
0 0.188rem 0.25rem rgba(0,0,0,0.12),
0 0.125rem 0.25rem rgba(0,0,0,0.14);
position: relative;
z-index: 9;
}
Upvotes: 1
Reputation: 4638
Use z-index
property to stack them to get over the overlapping issue.
Upvotes: 1