I had a problem with extra spaces on the sides and I couldn't find the error so I would like some help
Edgar
@edgarbp95All comments
- @alanrsouza04Submitted over 1 year ago@edgarbp95Posted over 1 year ago
The problem is in the padding 10% that you are giving to the main. Remove it and you won't have the scroll problem.
Look for another way to center it, like enclose it in div, give the body 100vh, and center it with flex, justify-content:center, aling-items:center (could be an option).
Good luck!
Marked as helpful0 - @GitNuttsSubmitted almost 3 years ago
Can somebody explain how adding two box-shadows like I have creates that effect and how it's actually working? I understand the basics but I got the idea from somebody else.
Also, is there a better/easier way to create the overlay or is my method good enough?
Thanks
@edgarbp95Posted almost 3 years ago/* offset-x | offset-y | blur-radius | spread-radius | color */
try to give a blur-radius and spread-radius. Some like that: box-shadow: 0 25px 50px 15px #0c1729;
it works to me. I hope to be helpful.
0