Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Profile Card using Flex box

@LucasHMelo

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


Hello Folks,

I thought this challenge was easier, but i had some difficulties doing him. Some of this problems were:

  • Background, apparently the bg is rotate, but i can't do this, some tip ?
  • profile image, in this part i can't put the name near to the profile image, because seems a div between the image and the text, why did this happen ?

Community feedback

Annas Dwi 400

@anasdwc

Posted

Hello @LucasHMelo 👋

  • For background image, you can add some value for positioning your image

Documentation 📓:

https://developer.mozilla.org/en-US/docs/Web/CSS/background-position

  • You can add some value to background-position

Code ⌨️:

body {
  background-image: url(../../images/bg-pattern-top.svg),
    url(../../images/bg-pattern-bottom.svg);
  background-position: top -380px left -110px, bottom -350px right -150px;
  background-repeat: no-repeat;
  background-size: contain;
}
  • It's better if you use the img HTML syntax instead of using the background-image in CSS. img HTML is also easier to customize.

Feel free to reach me out 🍻

0
Favour 2,140

@Nadine-Green

Posted

HEY LUCAS!

Concerning your issue with the background, here is the code that I used for mine, hopefully, it can help you too:

background-image: url(images/bg-pattern-top.svg),
    url(images/bg-pattern-bottom.svg);
    background-position-x: -100%, 200%;
    background-position-y: 85%, -60%;
    background-repeat: no-repeat, no-repeat;

you will put this inside the body selector

To put the name near the image, for your .row, a possible solution for this would be to use a negative margin e.g margin-top: -1rem, this will move it up instead of down.

I see that you also have some accessibility issues, I can help you with that::

Instead of using a div1 for the .attribution, you should instead use a semantic element like footer`.

HOPE I COULD BE OF HELP :)

HAPPY CODING!

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