Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
5
Comments
1

Brett

@b-capraMichigan60 points

Aspiring full stack web developer.

Latest solutions

  • Expense Chart Component from external JSON data, built with React

    #react

    Brett•60
    Submitted over 2 years ago

    0 comments
  • FAQ accordion with animated transitions


    Brett•60
    Submitted over 2 years ago

    1 comment
  • Interactive Rating Component with Flexbox


    Brett•60
    Submitted almost 3 years ago

    1 comment
  • 3 Column Responsive Card w/ Flexbox


    Brett•60
    Submitted almost 3 years ago

    2 comments
  • QR code component using CSS Flexbox

    #styled-components#smacss

    Brett•60
    Submitted almost 3 years ago

    1 comment

Latest comments

  • Adolf Schmuck•10
    @answebdev
    Submitted almost 3 years ago

    QR Code Component

    2
    Brett•60
    @b-capra
    Posted almost 3 years ago

    Have you tried using flexbox to align the items in the card? The media query approach you used utilizes a lot of different paddings, and using padding as your primary means of aligning and laying out items can get a bit difficult as you've probably encountered here.

    Using properties that are more suited to layout, like flexbox or grid, can help. For example, in my solution for this same challenge, I used these properties on my div containing all the items on the component:

    div { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }

    From there, all I needed to do was adjust the top/bottom margins of the elements within the card to get them in the right position.

    You can see that code in my solution here: https://www.frontendmentor.io/challenges/qr-code-component-iux_sIO_H/hub/qr-code-component-using-css-flexbox-2chPVWJdcF

    Hope this helps!

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