Responsive Webpage, using basic Jquery and SASS
Design comparison
Solution retrospective
2nd card (Thanks Card) cannot center elements properly, can someone help me with that?
Community feedback
- @byronbyronPosted over 2 years ago
Hi @MikeAngel2
You should be able to center the second card by updating your
index.js
to set display flex instead of block.$(".Thanks").css('display','flex');
This bit of CSS should help to center the text on the second card as well
.Thanks { align-items: center; text-align: center; }
Hope that helps!
Marked as helpful2@MikeAngel2Posted over 2 years ago@byronbyron Hi Byron
Thank you for your feedback.
I changed this my JS code to yoyr recommendation, it seems that only affected element is the image; The "Selected X stars" div, from the second card seems that aligns it's text, but not the div itself.
Definitely helped! Kind of annoyed for that little detail in my code lol.
0 - @Kamasah-DicksonPosted over 2 years ago
So your star IMG is not showing and also there is no margin left and right on the container. Its spanning horizontally on smaller devices. Hope you fix it. Besides good job, keep coding๐๐
1
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