Article preview component

Please log in to post a comment
Log in with GitHubCommunity feedback
- @wellspr
Good job on the desktop version, it is very close to the original design. However, it lacks responsiveness for smaller screen sizes. To improve this solution, you should include one or more media queries. The media queries are necessary because the layout changes from vertical to horizontal. Then, it would be your choice to use, for example, Flexbox or Grid to arrange the layout accordingly. For example:
.preview { display: flex; flex-direction: column; @media (min-width: 768px) { flex-direction: row; } }
Marked as helpful
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