Submitted over 1 year ago
Responsive Newsletter using CSS grid, CSS SASS and native JS.
@a-Rider-m
Design comparison
SolutionDesign
Solution retrospective
My only question is, is there any way to add SVG files from the HTML and have them load based on the screen size?
Community feedback
- @DudeldupsPosted over 1 year ago
Heya! You can use the
<picture>
Element. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture?retiredLocale=deIf you just want to add an SVG you could set the
visibility: hidden
ordisplay: none
and change it in a min-width media queryMarked as helpful0
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