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

Custom CSS Html

Thidar Nyeinโ€ข 410

@thidarnyien

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


I have difficult I don't know how to put body svg background

Community feedback

Lucas ๐Ÿ‘พโ€ข 104,420

@correlucas

Posted

๐Ÿ‘พHello Mal Thidar, congratulations for your new solution!

โ“ Answering your question:

To add the circles (bottom/top) in the background, 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, see the properties below and see that the comma inside each properties declare the single modification for each circle separated.

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;
    font-family: 'Kumbh Sans', sans-serif;
    /* background: linear-gradient( hsl(185, 75%, 39%), hsl(185, 75%, 39%)), url(./images/bg-pattern-top.svg); */
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: hsl(229, 23%, 23%);
}

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

0
Ahmed Kamelโ€ข 1,190

@hmadamk

Posted

hi there again your solution looks great for the images its a bit tricky but I will feed you back on how to do them soon, scince I have to figure it out first

0
faizanโ€ข 2,420

@afaiz-space

Posted

Hey thidarnyien,

  • use background: url("images/filename.svg);
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