Design comparison
Solution retrospective
I learned how to use HTML5 for semantic markup, CSS for styling, and Flexbox for creating responsive layouts. I also explored the box-sizing: border-box; property to ensure consistent element sizing and the importance of media queries for a mobile-first workflow. Additionally, I've effectively integrated these concepts to create a well-structured, responsive webpage.
Some HTML code I'm proud of
proud of this css
{
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
gap: 15px;
box-sizing: border-box;
padding: 15px;
max-width: 230px;
text-align: center;
font-family: 'Roboto', Arial, sans-serif;
}
What challenges did you encounter, and how did you overcome them?
One of the challenges I encountered was making the design responsive. Initially, I struggled to achieve this using only CSS and HTML. However, I overcame this by learning and applying various CSS techniques, such as Flexbox and Mobile-first workflow. These strategies allowed me to create a layout that adapts smoothly to different screen sizes. This experience taught me the importance of responsive design in ensuring accessibility and usability across all devices.
Community feedback
- @SuneYdePosted about 1 month ago
Your work shows great progress! The use of Flexbox,
box-sizing: border-box
, and mobile-first media queries is solid.What’s Good:
- HTML: Great structure, though adding elements like
<main>
and<footer>
would enhance semantics. - CSS: Well-organized and responsive, with effective use of Flexbox and modern practices.
Suggestions:
- Accessibility: Adding
aria-labels
and improving semantics will boost accessibility. - Responsiveness: Test on a wider range of screen sizes to ensure consistency.
- Reusability: Consider utility classes for common styles to simplify your CSS.
Keep up the good work!
Marked as helpful1@wafae-haidaPosted about 1 month ago@SuneYde, thank you so much for your detailed feedback! I'm glad to hear that my use of Flexbox, and mobile-first media queries is on point. I appreciate your thorough review and suggestions. I'm excited to enhance my project further by incorporating these improvements, especially with accessibility and semantics. Thanks for the encouragement!
0 - HTML: Great structure, though adding elements like
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