Design comparison
Solution retrospective
Hello! First time using Bootstrap for a project, it's great! I have an issue with the picture active state, I couldn't make it fit perfectly the card-img-top, any advice is very welcome! Also, I couldn't change the sizes of width and height which are 25/50/75/100 with Bootstrap, not precise enought but I couldn't find the name of the variable in the bootstrap scss to change it, again advices are welcome!
Community feedback
- @amalkarimPosted about 2 years ago
Hi, Claire 👋
It's interesting to see someone using Bootstrap to solve the challenge in here. I've never done that myself.
To make the
card-overlay
fitcard-img-top
, do these two step:- Give the div that contain
card-overlay
andcard-img-top
(i.e. their parentdiv
) this:position: relative;
- Change
height
ofcard-overlay
from392px
to100%
;
Hope this helps
Marked as helpful0@ClaireLise-devPosted about 2 years ago@amalkarim Thanks a lot Amal! It works out perfectly!! I still need to work on position relative/absolute ;-)
0 - Give the div that contain
Please log in to post a comment
Log in with GitHubJoin 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