Submitted over 4 years ago
HTML/CSS/JS. SVG for dark/light button, using appendChild for popup.
@Karska-dev
Design comparison
SolutionDesign
Solution retrospective
How to avoid scroll for the article and still fit the design?
Community feedback
- @Mahesh-yadavPosted over 4 years ago
Hi
The scroll is displayed because of these two styles:
// **line number: 85** .article-section { margin: 1rem 0; overflow: auto; } // **line number: 210** @media only screen and (min-width: 950px) { main { flex-direction: row; width: 51%; max-width: 975px; height: 35%; min-height: 280px; margin: 0; }
When you set
overflow: auto
. Themin-height
value is taken as height of the element which in your case is 280px. (height: 35%
is not taken).So either remove
min-height
oroverflow:auto
2@Karska-devPosted over 4 years ago@Mahesh-yadav Thank you! I've removed min-height and everything is much better now!
0
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