Responsive web and mobile news homepage main challenge
Design comparison
Solution retrospective
any feedback please !!, i have completed this challenge but one thing i haven't completed is a blur background when sidebar clicked, if you read this please give me a solution, thank you
Community feedback
- @Karrar-HusseinPosted almost 2 years ago
The best way to approach this is to create an overlay with position fixed and size it so that it covers the whole screen and give it a black background color with an alpha value and set its display property to "none", then you can attach an event listener to toggle the overlay display property whenever you click the nav button.
also, don't forget to give the sidebar a z-index higher than the overlay
Marked as helpful1@rafiputra2000Posted almost 2 years ago@Karrar-Hussein thank you for feeadback sir, will be fixed soon
0 - @bap-ssbmPosted almost 2 years ago
Hello! For the blurred background I suggest using box-shadow property on your .sideNav class using a black color with some transparency such as rgba(0, 0, 0, 0.5); for example.
hope this helps! :)
Marked as helpful1@rafiputra2000Posted almost 2 years ago@bap-ssbm thank you for feedback, i will try for your solution 👍
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord