Design comparison
Solution retrospective
I had a horizontal scrolling issue with my project on mobile devices.
I have solved this issue by using the following code
header {
overflow-x: hidden;
max-width: 100vw;
}
and then adding this .is-active
class to the header using Javascript:
.is-active {
overflow: visible;
}
Community feedback
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