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

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!
Please log in to post a comment
Log in with GitHubCommunity feedback
- @elaineleung
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 - @AdrianoEscarabote
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-st
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
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 ash2
andh3
) 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 - @crsimpson5
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
This is a masterpiece! Thank you for being active in the community. Keep calm and code on 🤙🏽
- @oluwa-busssy-olami
This is an exceptional design, the hover effect and colors is breathtaking..
- @nerometa
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😀
- @snehamoybag
Damn this is so cool! 😯🔥
- @AhmedAlharees
WOW! what an amazing vision for this challenge.
- @chukwudobe-Micah
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
hey , what is main purpose of "box-sizing: border-box;"? When I should use it?
- @CodeWithAlamin
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