Design comparison
Solution retrospective
This was a bit of a challenge. Tried to use the img srcset/size HTML tag to load the alternate file for the mobile 375px size but without any luck. Managed to get the hover, icon, and box animation effects working with CSS but cannot get the box to scale correctly. Any suggestions/hints appreciated.
Community feedback
- @tedikoPosted almost 4 years ago
Hello, Jane! 👋
Well done! Your solution looks good and responds quite well! What i would suggest is:
-
Take a look at
<picture>
tag. The <picture> tag gives web developers more flexibility in specifying image resources. -
There is no need to add
flexbox
for your.panel
. U can continue usinggrid
for that container while resizing to mobile. Just make your grid one column and position bg-image withposition: absolute
. Also you need to break your design to mobile sooner, the 375px is expected to be final width of design, and you add your media-quries for that width.
This is my approach to this challenge. Like most people here, I also learn but maybe you will find something good for yourself.
Good luck with that, have fun coding! 💪
2 -
- @janegcaPosted almost 4 years ago
Hi tediko, thank you for your comments; I will check out the picture tag and review the media breakpoint.
0
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