Design comparison
Solution retrospective
Hello everyone, some tips to improve my code? Any feedbacks are appreciated
Community feedback
- @correlucasPosted about 2 years ago
👾Hello Jesús Yadiel, congratulations for your new solution!
I've one tip for you to fix the issue with the background image that is not fitting all the screen:
First of all you need to remove both
<img>
import youve used inside the html to importh the image inside the CSS .You can import the background inside the body withbackground-image: url(../images/pattern-background-desktop.svg);
and make it take the size full widthbackground-size: contain;
body { background-image: url(../images/pattern-background-desktop.svg); display: flex; justify-content: center; background-size: cover; background-repeat: no-repeat; align-items: center; min-height: 100vh; background-size: contain; background-color: var(--pale-blue); }
👋 I hope this helps you and happy coding!
1 - @VCaramesPosted about 2 years ago
Congrats on completing this challenge!
When using decorative images, such as background images, you have to the background-image property to implement the image. Attached is a link for more details:
https://developer.mozilla.org/en-US/docs/Web/CSS/background-image
1
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