Design comparison
Solution retrospective
How do you get the profile picture to be centered between the top image and the body of the card?
How do you get the background images to be positioned in the top left and bottom right?
Any other suggestions are welcomed!
Community feedback
- @correlucasPosted about 2 years ago
πΎHello @Luis-Olivero, congratulations for your new solution!
Answering your question: To MANAGE and add these two circles as a background, adding it to the body with two main properties,
background-image
andbackground-position
, note that the comma inside each properties declare the single modification for each circle!body { background-color: hsl(185deg, 75%, 39%); background-image: url(./images/bg-pattern-top.svg), url(./images/bg-pattern-bottom.svg); background-repeat: no-repeat, no-repeat; background-position: top -500px left -400px, bottom -700px right -250px; /* background-image: url(images/bg-pattern-top.svg); */ /* background-image: url(images/bg-pattern-bottom.svg); */ background-color: var(--Dark-cyan); font-family: var(--Kumbh); font-size: 1rem; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 6em 1em; }
π I hope this helps you and happy coding!
Marked as helpful0 - @md5daltonPosted about 2 years ago
Hi Luis... Congrats on finishing the challenge.
For your first question, you can add this to your styles:
.card__img--picture img { position: relative; top: -48px; /* 50% of element height */ }
Marked as helpful0 - @JetyunPosted about 2 years ago
you can put the bubble image in the card as background image, then you can use margin to arrange the position of your image.
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