Responsive news homepage solution using HTML, CSS and JS
Design comparison
Solution retrospective
Implementing the layout using CSS grid, whilst grid-items were also grids or flexbox components created some challenges regarding alignment. However, after some trial and error, I was able to come up with a few solutions. CSS custom variables were extremely helpful in this regard. It allowed me to maintain the flex and grid-item gaps easily.
What challenges did you encounter, and how did you overcome them?Two challenges encountered:
- Grid-item alignment for nested flex and grid-items.
- Navigation menu
I overcame the grid-item alignment issues through trial and error. CSS custom variables were especially helpful regarding this. I was able to maintain gaps easily and ensured that the gaps for the grid-items were the same as the parent container.
I utilised online documentation and YouTube videos to resolve the mobile screen navigation menu. It was my first time creating this component.
What specific areas of your project would you like help with?As I am still learning (...and aim to continue learning) all feedback is welcomed.
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