Skip to content
Submitted about 3 years ago

Responsive news homepage using CSS Grid and Flexbox

LVL 2
@holdenr505
A solution to the News homepage challenge

Solution retrospective


I mostly had trouble with aligning the items in my main tag using Grid. The image for the main story would not fill the whole grid cell. I managed to solve this by making that particular section a flex container and setting the images flex growth to 1. Not really sure if that was the best way to go about it, so I'm really looking for feedback on best practices or things I'm doing wrong that could be improved. Thanks so much :)

Code
Loading...

Please log in to post a comment

Log in

Community feedback

No feedback yet. Be the first to give feedback on holdenr505’s solution.

Join 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