Design comparison
SolutionDesign
Solution retrospective
I couldn't figure out how to position the background image, so I hide the scrollbars and adjust the margin of the background images. Is there any way/ a better way to adjust the SVG background images? Please do let me know. Thank you so much.
Community feedback
- @Bayoumi-devPosted over 2 years ago
Hey Jason!
- An easy way to handle the background
circles
, Give thebody
or the profile card container the following style to put thesecircles
as abackground image
:
body { margin: 0; font-family: "Kumbh Sans"; /* background-color: var(--DarkCyan); */ <--- Remove /* overflow: hidden; */ <--- Remove min-height: 100vh; background: url(../images/bg-pattern-top.svg) right 50vw bottom 40vh no-repeat, url(../images/bg-pattern-bottom.svg) 50vw 50vh no-repeat var(--DarkCyan); } /* The scrollbar will appear because `p` has a default `margin` ---- Remove `margin` */ p { margin: 0; }
Marked as helpful0 - An easy way to handle the background
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