Design comparison
Solution retrospective
I wasn't sure if I needed to use absolute/relative positioning. I couldn't think of any other way to get the cards in the exact positions that they needed to be in. If anyone has another way, I'd love to be enlightened! Still very new to coding so thanks in advance!
Community feedback
- @shashiloPosted over 4 years ago
Trying is apart of development. You keep trying and learning until you get better. I really like your hover animation. Super clean!
You are right, there is a better way to implement this. Try to avoid exactly positioning main sections when developing. It's very difficult to maintain and it doesn't work well on multiple screen sizes. For me, I usually only use
position: relative;
withleft/right/top/bottom
on elements that needs to move just a little bit. In this case, these cards should be completed a different way. You could either look at making this with Flexbox or CSS Grid. The best way to get ideas is to look at how others from the community are implementing their solutions. Everyone does things differently and it will provide some guidance you're looking for.2@tyshawn-anthonyPosted over 4 years ago@shashilo Thank you Shashilo! It was indeed very difficult to make them responsive. I need to look further into Flexbox and CSS Grids, hopefully I can get them down soon. Thanks again!
1@shashiloPosted over 4 years ago@Itchito You first have to build it, then you'll learn how to do it right, and last, you'll learn how to make it better. ;)
1 - @thm01Posted over 4 years ago
Cool hover effect, thanks for the idea :)
1@tyshawn-anthonyPosted over 4 years ago@thm01 Thank you! Glad I could inspire in some little way!
0 - @pranshudobhalPosted over 4 years ago
Hey Itchito, I loved the hover effect on cards. The way that I have positioned cards is using flexbox. I used bootstrap 4 which now uses flexbox for positioning. So, maybe you can give it a try.
1@tyshawn-anthonyPosted over 4 years ago@pranshudobhal Thank you Pranshudobhal! I will definitely give it a shot. I took a css course that introduced bootstrap, but I wasn't sure if it was still the best route to take in 2020.
0@pranshudobhalPosted over 4 years ago@Itchito Well, bootstrap does give you a lot of advantage w.r.t. responsiveness as it has built-in classes. So, bootstrap is a quick way to achieve responsiveness in websites and since the introduction of flexbox, it has become even more useful. How I use bootstrap is that I make the basic structure and the responsiveness of page using bootstrap and then I style my elements according to my needs. I hope you get what I'm saying.
0
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