Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
13
Comments
3
Aq1q
@Aq1q

All comments

  • Cesar D.•400
    @ThatDevDiaz
    Submitted about 2 years ago

    Profile card component

    2
    Aq1q•220
    @Aq1q
    Posted about 2 years ago

    Hi

    1 To make the profile pic fit within a circle you could give border-radius of 50% to it directly either by id or a class

    2 From what I see there is in fact margin top and margin bottom on both h1 and p tags in your statistics. You can select those tags by giving each paragraph and heading a class and then change your paragraphs margin-top to 0 and your headings margin-bottom to 0

    3 You don't need to space those tags with margin left and right, you can just use justify-content: space-evenly or justify-content: space-between

    4 You could also center text inside your statistics h1 and p tags with text-align: center;

    Marked as helpful
  • Ignacio Spreafico•590
    @nachospreafico
    Submitted about 2 years ago

    QR Code Component

    3
    Aq1q•220
    @Aq1q
    Posted about 2 years ago

    It looks like display grid doesn't change how your body behaves, it does not center your component

    You could give it height of 100vh to take whole page, display it as flex, make it's direction column so that your footer stays at the bottom and justify it's content to the center, so your code would look something like this:

    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }
    

    This also makes paddings in your body, and both margins in your .card-container obsolete, because you already have it centered within body tag

    Marked as helpful
  • RahulCoder9999•10
    @RahulCoder9999
    Submitted about 2 years ago

    My First UI task, The Preview Card

    2
    Aq1q•220
    @Aq1q
    Posted about 2 years ago

    Hello There

    I have some things you could think while doing your future projects:

    -It seems that your solution is not really centered and it looks like your component overflows the page, you can fix that adding some style to your body tag, for example:

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    

    It makes your body tag take full device height, stops it from overflowing the page and centers your component vertically and horizontally

    I can also see you did not create style for mobile devices media queries are something that could help you with it

    Marked as helpful
Frontend Mentor logo

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub

Oops! 😬

You need to be logged in before you can do that.

Log in with GitHub