Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
9
Comments
2

MisterCcobD

@MisterCcobD120 points

I’m a mysterious individual who has yet to fill out my bio. One thing’s for certain: I love writing front-end code!

Latest solutions

  • Social Links Profile


    MisterCcobD•120
    Submitted over 1 year ago

    0 comments
  • Recipe-page-main


    MisterCcobD•120
    Submitted over 1 year ago

    0 comments
  • nft-preview-card


    MisterCcobD•120
    Submitted over 1 year ago

    1 comment
  • Product-preview-card


    MisterCcobD•120
    Submitted over 1 year ago

    0 comments
  • Results-Summary-Component


    MisterCcobD•120
    Submitted over 1 year ago

    1 comment
  • FAQ-accordion _html_css_only


    MisterCcobD•120
    Submitted over 1 year ago

    3 comments
View more solutions

Latest comments

  • Nikola Petkovic•90
    @nikolapetkovicdev
    Submitted over 1 year ago

    Responsive landing page using CSS Grid

    1
    MisterCcobD•120
    @MisterCcobD
    Posted over 1 year ago

    In this case, i really don't think margins will help. Try flex on .container's parent also to center everything. Aaand, why used the positioning? Try live site on your phon(s) also to see if it resembles the requirements. Is one thing to check viewport size and completely different when you check on a phone in some cases.

    body {
        background-color: hsl(212, 45%, 89%);
        min-height: 100vh;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .container {
        max-width: 350px;
    /* padding: 1rem; */
        background-color: hsl(0, 0%, 100%);
        text-align: center;
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    Marked as helpful
  • Balachandra navidha•20
    @balachandranavidha2001
    Submitted over 1 year ago

    Responsive layout using HTML, CSS

    1
    MisterCcobD•120
    @MisterCcobD
    Posted over 1 year ago

    Hey buddy, Nicely done and i hope you don't mind, i would add something that has given to me also

    body {
    .../...
      align-items: center;
      min-height: 100vh;
    }
    

    And i would personally remove the margins from either resolutions and maybe try revers the media query with something like

    .main-container{
    .../...
    width:75%
    }
    @media screen and (min-width: 450px) /* obtional (min-height:450px)  */ and (orientation: landscape)
    .main-container {
        width: 25%;
    }
    ```
    
    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

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