@Octagon-King
Posted
That's really cool.. A question how to make the icons fixed to the cards.. in my solution when I try to change the resolution, it changes positions.
@ApplePieGiraffe
Posted
@Octagon-King
Thanks! 😀
I used flexbox to lay out the elements in the first row of cards on the page and CSS grid to lay out the elements in the the rest of the cards. I think keeping the icons in place when the size of the screen changes is a matter of making sure the icons are correctly placed within their container (which you can do with properties like justify-content
or align-items
for flexbox and align-self
and justify-self
) and that the size of the card itself is large enough for the items inside it (so that they don't get squished or start being pushed around). 😉 Feel free to use the dev tools to inspect the code for this solution and poke around. Doing that often helps me learn a lot from other people's solutions. 😅
@Octagon-King
Posted
@ApplePieGiraffe Thanks! I did it and I was using flexbox for the second small cards too but when I start using grid it made it easier and less code.
Thanks again. 😉 for a Helping a Newbie
@Octagon-King
Posted
@ApplePieGiraffe Here you can see what i have done: https://distracted-noether-27fb8c.netlify.app
@ApplePieGiraffe
Posted
@Octagon-King
No problem! 👍
The layout of the cards in your site is looking pretty good, right now! 😀
@Octagon-King
Posted
@ApplePieGiraffe Thanks man