Position: relative/absolute | HTML | CSS

Solution retrospective
Was the position: absolute / relative the right way to go about positioning the divs for the desktop version?
Please log in to post a comment
Log in with GitHubCommunity feedback
- @Mahesh-yadav
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
- set
Join 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