Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Your session has expired please log in again.
Your session has expired please log in again.
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Profile Card Component

denise• 230

@moncadad

Desktop design screenshot for the Profile card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Honestly, after numerous attempts to replicate the designs background I came to the realization that I simply do not know what to do. It should be css basics, nothing complicated, I'm probably over thinking it, but I'm still completely lost. I suppose it's important to know when to ask for help and this is one of those times.

So hey, I'd appreciate any guidance or resource links that will help enlighten me.

Community feedback

Paulo Xavier• 100

@paulo-xavier

Posted

Hi! I spent many hours in this background too. My strategy to solve this was adding the two images in a <img> tag and then I positioned them using the "position: relative" and the basic properties for top and left.

HTML
<img class="bg-top" src="./src/images/bg-pattern-top.svg" alt="Bubble background">
<img class="bg-bottom" src="./src/images/bg-pattern-top.svg" alt="Bubble background">

CSS
.bg-top {
    position: relative;
    max-width: 800px;
    height: auto;
    left: -490px;
    top: 311px;
  }

.bg-bottom {
    position: relative;
    max-width: 800px;
    height: auto;
    top: -177px;
    right: -418px;
  }

Probably not the best solution as possible, but it worked for me! 😀

Marked as helpful

0

denise• 230

@moncadad

Posted

@paulo-xavier thanks for the feedback i'll add this to my list for future refrence! :)

0
Jennifer Souza• 340

@zoedarkweather

Posted

The background was kind of tricky. It's two images, set both to no-repeat. There's one that is offset from top left and one that is offset from bottom right. You can take the dimensions of the images to compute the offsets. The MDN docs on background https://developer.mozilla.org/en-US/docs/Web/CSS/background I find helpful. Also here is a link to my solution if you want to look at my css for the bg. https://github.com/zoedarkweather/profile-card-component. Hope this helps. :-)

Marked as helpful

0

denise• 230

@moncadad

Posted

@zoedarkweather Thanks for the advise I will be checking out the resource link and your solution! :)

0

Please log in to post a comment

Log in with GitHub
Discord logo

Join 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