Design comparison
Solution retrospective
bad job. i don't know how to resize h1 and p to size i need What did you find difficult while building the project? Which areas of your code are you unsure of? Do you have any questions about best practices?
Community feedback
- @correlucasPosted about 2 years ago
Hello again Nikita, I checked your code and the text are working fine I don't see any problem, the only thing to fix is the background image and the whole content alignment:
Use these properties to make sure the content will be ever aligned center.
body { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
About the svg image decoration its better you add it in the body to keep it size displaying all the body instead of adding it as
<img>
to have more control.body { background-image: url(./images/bg-mobile.svg); /* background-size: contain; */ font-family: 'Open Sans', sans-serif; background-repeat: no-repeat; background-color: var(--violet-200); /* height: 100%; */ background-size: cover; }
See if works for you =)
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