Design comparison
Solution retrospective
The challenge I encountered when creating this project was figuring out how to accommodate the background image. Please offer me your suggestions, since they will help me to better my code.
Community feedback
- @klara367Posted about 2 years ago
Hi Hawi,
I just came across your solution. Maybe you've already found out. But I noticed that the reason you have displayed both backgrounds (mobile and desktop) on the screen, is that you put the mobile background to the .social-proof and then the desktop background to the body. So it displays both backgrounds. If you just move the mobile background from the .social-proof to the body, it should work.
Also, if you want two background images to be placed on different spots, you can write position for each one and separate it with comma, like this:
body { background-image: url("./images/bg-pattern-top-desktop.svg"),url("./images/bg-pattern bottom-desktop.svg"); background-repeat: no-repeat; background-position: top left, bottom right; }
You can check it out here
Hope that will help.
0 - @correlucasPosted about 2 years ago
👾Hello @Hawigirmachew, Congratulations on completing this challenge!
Great code and great solution! I’ve few suggestions for you that you can consider adding to your code:
You did a really good work here putting everything together, something you can improve its your code html markup and semantics. You can replace the
<div>
that wraps each card with<article>
you can wrap the paragraph with the quote with the tag<blockquote>
this way you'll wrap each block of element with the best tag in this situation. Pay attention that<div>
is only a block element without meaning.This article from Freecodecamp explains the main HTML semantic TAGS: https://www.freecodecamp.org/news/semantic-html5-elements/
✌️ I hope this helps you and happy coding!
0@HawigirmachewPosted about 2 years agoThanks @correlucas. I will use html markup and semantics for my next project.
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