Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted about 3 years ago

3 Column Preview Card (Vanilla CSS + Custom Design & Hover States)

Lucas 👾•104,160
@correlucas
A solution to the 3-column preview card component challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


👾 Hello, Frontend Mentor coding community. This is my solution for the 3 Columns Card Component.

Feel free to leave any feedback and help me improve my solution or make the code clean!

  • 👾 I added a Custom hover effect on card w/ the Vehicle Types photo on background.

I'll be happy to hear any feedback and advice!

Code
Select a file

Please log in to post a comment

Log in with GitHub

Community feedback

  • Elaine•11,360
    @elaineleung
    Posted about 3 years ago

    Hey Lucas, very colorful and creative solution! Just wanted to quickly respond to the question you asked AppiePieGiraffe about <h1> tags; what you could try is to add it in with some text that describes the site, and then put a .visually-hidden class in the tag:

    <h1 class="visually-hidden">Descriptions and comparisons of three types of sedans, SUVs and luxury cars</h1>
    

    There should be some articles out there on how the CSS looks like; I also used it in some challenges, I just don't remember which ones so I can't give you a reference😅

    Once again, well done!

    Marked as helpful
  • Adriano•42,890
    @AdrianoEscarabote
    Posted almost 3 years ago

    Nossa eu não vi isso! Meu Deus!

    Ficou insano o efeito de hover nos cards, eu estava fazendo este desafio antes do art gallery, mas deu uma preguiça ahuahauhahu admito que fiquei agora com vontade de personalizar ainda mais ele ahuahuauahu

    Uma dica para melhorar ainda mais:

    Observei que você colocou min-height: 100vh; em dois lugares diferentes.

    1- body { min-height: 100vh; }

    2- .center { min-height: 100vh;}

    Para não ter um código que não é utilizado no nosso código podemos simplesmente retirar o min-height do body.

    o resto está ótimo!

    Espero que ajude!!!

    Marked as helpful
  • Tauri StClaire•40
    @tauri-st
    Posted about 3 years ago

    Your adjustments to the design are beautiful and sleek! Your Readme is nice and to the point, your CSS Commentary is awesome and I will certainly be emulating you more there. There's clearly a lot I can learn from you here and I will probably be scrutinizing your projects multiple times as I continue to learn! I have flagged that resource on BEM to reference for better standardization!

    Marked as helpful
  • ApplePieGiraffe•30,525
    @ApplePieGiraffe
    Posted about 3 years ago

    Hi there, Lucas! 👋

    Amazing work on this challenge! 👍 The extra touches you added to your solution look great! 🤩

    Small tip—it would be worth using only one h1 tag per page. This is a good practice since there should be only one most important heading on a page. You can use less-important headings tags (such as h2 and h3) for the the headings in this challenge since there are multiple of them of the same level.

    Hope that helps. 😊

    Keep coding (and happy coding, too)! 😁

    Marked as helpful
  • Curtis Simpson•550
    @crsimpson5
    Posted about 3 years ago

    Hey Lucas, this is awesome! Love the design and hover effects.

    A small improvement you could make with your CSS is to remove the redundant "rounded" classes on the cards. Since you already have a border radius on the container, you can add overflow: hidden to the container and the cards won't need their own "rounded" classes.

    Keep up the great work! 😃

    Marked as helpful
  • celeste-melissa•20
    @celeste-melissa
    Posted about 3 years ago

    This is a masterpiece! Thank you for being active in the community. Keep calm and code on 🤙🏽

  • Busoalmi•250
    @oluwa-busssy-olami
    Posted about 3 years ago

    This is an exceptional design, the hover effect and colors is breathtaking..

  • nerometa•280
    @nerometa
    Posted about 3 years ago

    This is truly amazing, Lucas! Love the hover effect and your take on color that's entirely different to the design.

    After seeing this, I HAVE to follow you man. You're that amazing😀

  • Snehamoy Bag•600
    @snehamoybag
    Posted about 3 years ago

    Damn this is so cool! 😯🔥

  • Ahmed Alharees•360
    @AhmedAlharees
    Posted over 2 years ago

    WOW! what an amazing vision for this challenge.

  • Chukwudobe Micah Chinedu•700
    @chukwudobe-Micah
    Posted almost 3 years ago

    Really nice work, I want to ask .. what's the difference between -webkit animation and animation? I checked google but I'm not getting the answer I require. I see you use WebKit a lot.

  • imranhossainemi•245
    @imranhossainemi
    Posted almost 3 years ago

    hey , what is main purpose of "box-sizing: border-box;"? When I should use it?

  • Alamin•1,980
    @CodeWithAlamin
    Posted about 3 years ago

    Awesome !!

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

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

How does the accessibility report work?

When a solution is submitted, we use axe-core to run an automated audit of your code.

This picks out common accessibility issues like not using semantic HTML and not having proper heading hierarchies, among others.

This automated audit is fairly surface level, so we encourage to you review the project and code in more detail with accessibility best practices in mind.

How does the CSS report work?

When a solution is submitted, we use stylelint to run an automated check on the CSS code.

We've added some of our own linting rules based on recommended best practices. These rules are prefixed with frontend-mentor/ which you'll see at the top of each issue in the report.

The report will audit all CSS, SCSS and Less files in your repository.

How does the HTML validation report work?

When a solution is submitted, we use html-validate to run an automated check on the HTML code.

The report picks out common HTML issues such as not using headings within section elements and incorrect nesting of elements, among others.

Note that the report can pick up “invalid” attributes, which some frameworks automatically add to the HTML. These attributes are crucial for how the frameworks function, although they’re technically not valid HTML. As such, some projects can show up with many HTML validation errors, which are benign and are a necessary part of the framework.

How does the JavaScript validation report work?

When a solution is submitted, we use eslint to run an automated check on the JavaScript code.

The report picks out common JavaScript issues such as not using semicolons and using var instead of let or const, among others.

The report will audit all JS and JSX files in your repository. We currently do not support Typescript or other frontend frameworks.

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

Frontend Mentor for Teams

Frontend Mentor for Teams helps companies and schools onboard and train developers through project-based learning. Our industry-standard projects give developers hands-on experience tackling real coding problems, helping them master their craft.

If you work in a company or are a student in a coding school, feel free to share Frontend Mentor for Teams with your manager or instructor, as they may use it to help with your coding education.

Learn more

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