Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 2 years ago

Mobile-first Card Preview Component Using Bootstrap

bootstrap
Jason Ritter•40
@Higokian
A solution to the Product preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


This was my first time using bootstrap. I mostly referred to the docs, but I also used a couple Youtube videos when I'd get stuck. The most difficult thing I struggled with was figuring out how to make get the desktop version to be 2 columns and the mobile version to be a single column. I think I've gotten that part down.

A couple questions I have regarding bootstrap:

Typically using !important is frowned upon, but is it considered bad practice when dealing with changing colors and other stylization that is handled by bootstrap?

I ended up putting a lot of h-100 classes (nearly all of my divs containing the information column) to get everything to take up the entire height of the card. Is there a better way to do this?

What are some best practices when it comes to nesting with bootstrap?

I appreciate any and all feedback! Thank you!

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on Jason Ritter's solution.

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

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