Submitted almost 2 years ago
Intro section with dropdown navigation - HTML / CSS / JAVASCRIPT
@RafaelHDSV
Design comparison
SolutionDesign
Community feedback
- @sulemaan7070Posted almost 2 years ago
hey @RafaelHDSV 😄, congratulations on completing the challenge... here are a few tips to make your site better.
1.I see that you have used the
desktop-image
on both mobile and desktop versions.You can find theimage-hero-mobile
in theimages
folder..you can responsively change the image with the help of the picture element.2.Using the picture element for responsively switching between Images is considered as best practice
<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>
more about picture element here📚
3.The padding that you have given
padding: 5rem 5rem 2.5rem 5rem;
seems a bit more compared to the design..hope that helps happy coding💯🔥
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