Submitted 12 months ago
Responsive Preview Component with CSS Flexbox and Media queries
@eghosaclinton
Design comparison
SolutionDesign
Solution retrospective
No questions.
However, If you have better ways/ ideas to approach Responsive Design as well as CSS best practices, feel free to tell.
Community feedback
- @vedant027Posted 12 months ago
For device width between 770px and 425px the container doesn't remain responsive. something which you can look into otherwise its good
1@eghosaclintonPosted 12 months ago@vedant027 Thanks. Just noticed that, will fix as soon as possible
0 - @ronnypdevPosted 12 months ago
Hi @cliton
Good job! but some suggestions for the images instead of using two <img /> elements try something like this. --> https://www.w3schools.com/html/html_images_picture.asp
keep up the good work!
<picture> <source media="(min-width: 650px)" srcset="img_food.jpg"> <source media="(min-width: 465px)" srcset="img_car.jpg"> <img src="img_girl.jpg"> </picture>
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