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

Responsive Profile card component

Odo Peterโ€ข 130

@Odo-Peter

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


Would appreciate if someone tells me or shows me another way of creating the background for the body, that contains the two kinda circular svgs'

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Odo Peter, Congratulations on completing this challenge!

โ“ Answering your question:

Instead of adding these images with after/before, you can do it using background-image , in my opinion is the best way is by using background-image to manage it since adding them to the body you make sure it will be under everything, to manage multiple images inside a single css property as background-image you will use the comma inside each properties declare the single modification for each circle separated. See the code below to see your solution with those backgrounds applied:

body {
    background-color: hsl(185deg, 75%, 39%);
    background-image: url(./img/bg-pattern-top.svg), url(./img/bg-pattern-bottom.svg);
    background-repeat: no-repeat, no-repeat;
    background-position: top -400px left -53px, bottom -597px right 75px;
    position: relative;
    background-color: var(--official-bg);
    font-family: 'Kumbh Sans', sans-serif;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* background-color: var(--official-bg); */
    width: 100%;
    height: 100%;
}

โœŒ๏ธ I hope this helps you and happy coding!

1

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