Design comparison
Solution retrospective
I couldn't figure out how to use font awesome... It didn't work the way it was supposed to for instagram, only the other two, so I gave up, and downloaded the svgs... but then you can't color svgs only if they have that specific fill in the file. So is there a better way to have them pink while hovering, other than loading a totally separate svg file having a separate fill color for our target hover color?
What happens with the mobile view when the screen is bigger than 375px but not yet 1440px? I tried background-size: cover but that ruined it even in the 375px situation. Are we supposed to make pixel perfect designs only for the mentioned viewports or are we supposed to take care of it all along and being an exact match to the design is only secondary to it being responsive as a whole? What about line breaks?
Community feedback
- @correlucasPosted over 2 years ago
πΎHello Barney, congratulations for your new solution!
Answering your question about the mobile background:
Use background as
background-size: contain;
to fix this issue in the mobile version, in this case is better thancover
because forces the image to have a sizefull width
. See the changes below:body { overflow-x: hidden; height: 100%; width: 100%; margin: 0; padding: 2rem; font-family: "Open Sans",sans-serif; background: #674baf; background-image: url(../images/bg-mobile.svg); background-position: top left; background-repeat: no-repeat; background-size: contain; color: #fff; }
π I hope this helps you and happy coding!
Marked as helpful1
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