Design comparison
SolutionDesign
Solution retrospective
Was the position: absolute / relative the right way to go about positioning the divs for the desktop version?
Community feedback
- @Mahesh-yadavPosted over 4 years ago
Card Images are not positioned correctly. You are using margin properties to places icon images which is not the correct way. Instead you can do following:
- set
position: relative
on your.col
class for the card. - For the image set
position: absolute
, then you can useleft, right, top, bottom
properties to control where you want to place the image relative to the card. e.g. settingright: 0
andbottom: 0
will correctly place the image in the bottom-right corner.
Also you need to change
background-color
of cards towhite
1@robinwatts96Posted over 4 years agoHi @Mahesh-yadav , thanks for the comments! I'll make sure to use this info in future projects. All the best
0 - set
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