Skip to content
  • Unlock Pro
  • Log in with GitHub
Profile
OverviewSolutions
4
Comments
3
Carmen Delber
@Carmendelber

All comments

  • Chibuzor Isaac•20
    @ChibuzorIsaac
    Submitted over 2 years ago

    Product Preview Card Component Challenge

    4
    Carmen Delber•80
    @Carmendelber
    Posted over 2 years ago

    Hey! you can also use the image as background of a div in css and then change the image on the desktop media query:

    div {
        background: url('../images/image-product-mobile.jpg') center;
        background-size: cover;
    }
    

    But I think the solution of picture would be more correct in terms of accesibility and semantics.

    Marked as helpful
  • Tony•50
    @Snorri967
    Submitted over 2 years ago

    Product Preview Card Component

    2
    Carmen Delber•80
    @Carmendelber
    Posted over 2 years ago

    Hey! You can use flexbox to align both prices too:

    <div class="card__prices">
            <p class="price-main">$149.99</p>
            <p class="price-deleted">$169.99</p>
    </div>
    

    You need to add display:flex; and align-items:center; to the parent card__prices

    Marked as helpful
  • Léa•10
    @lealee92
    Submitted almost 3 years ago

    Responsive QR-code using CSS and HTML

    1
    Carmen Delber•80
    @Carmendelber
    Posted almost 3 years ago

    Hey! to center content easily, add 'display: flex;' and 'height: 100vh;' on the parent container (body) and 'margin: auto;' on the child (.container).

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