Design comparison
Solution retrospective
I had a little trouble with modifying the width of the svg for the divider, so for smaller screens I replaced it with just a horizontal line. If you have any suggestions please tell me, feedback is always welcome :)
Community feedback
- @olamide203Posted over 2 years ago
Hi there. You did a good job, Keep up the good work
- about the svg, you can have a
div
in your html and then use the svg as its background image
div. { background-image: url("pattern-divider-desktop.svg"); background-repeat: no-repeat; height: 16px; background-position: center; background-size: contain; }
I hope this was helpful
Good luck and Happy coding!
Marked as helpful1@mh1251Posted over 2 years ago@olamide203 Thanks for the feedback and for the tip, I will try it out :))!!
0 - about the svg, you can have a
- @livinglifemeaningPosted over 2 years ago
In addition to the method above, I have also been using the code snippet within the HTML file to accomplish responsive images.
<picture> <source media="(min-width: 500px)" srcset="[bigger-image]" /> <img src=[smaller-image] alt="" /> </picture>
1@mh1251Posted over 2 years ago@livinglifemeaning Thank you for the comment, it's really useful and I will keep this in mind for some next challenges :))!!
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