Overlay not covering full screen #87
Answered
by
BOLT04
numanjvd82
asked this question in
Q&A
-
I have an overlay on my background image which doesn't cover the full screen CSS code for the overlay body::after {
content: '';
position: absolute;
top: 0;
bottom: 0;
width: 100%;
height: 100%;
z-index: -1;
background: rgba(0, 0, 0, 0.4);
-webkit-box-shadow: inset 120px 100px 250px #000000;
box-shadow: inset 120px 100px 250px #000000;
} |
Beta Was this translation helpful? Give feedback.
Answered by
BOLT04
Aug 23, 2020
Replies: 3 comments 3 replies
-
Could you provide an image @numanjvd82, and perhaps some CSS code where you create that overlay? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @numanjvd82, try changing |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
eddiejaoude
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @numanjvd82, try changing
position: absolute
toposition: fixed
. You can check out more about the solution here: https://stackoverflow.com/questions/4648418/css-how-to-get-this-overlay-to-extend-100-with-scrolling