HTML, CSS, Responsive Web Design, Flexbox
Design comparison
Solution retrospective
Any Advice to better organize the divs? or a way to reduce the number of classes used?
Community feedback
- @snhmibbyPosted almost 3 years ago
Hey, instead of div's, try to use the html semantic elements (https://www.w3schools.com/html/html5_semantic_elements.asp). In order to reduce the classes used, take advantage of the ordering/element selection capabilities of css. Or better, use SCSS stylesheets, so it's easy to put some hierarchy. Personally, I'd try to keep all layout related things in CSS and only content related stuff in the HTML. So instead of <div class="column", just nothing or a semantic element. and then specify a column layout with css.
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