I usually find it a bit difficult on the following things:
- Center/Position stuff.
- Setting Height/Width and stuffs of images
So would want some advice to improve on that Thank you
I usually find it a bit difficult on the following things:
So would want some advice to improve on that Thank you
Hello and good job on finishing the challenge!
I don't think there's any need to set an explicit height and width on the image -- giving it a max-width: 100%
should work so that it takes the width from the parent div card
and then use padding to add space between the card's edges and its content. By doing so, the image would adjust accordingly when the screen is resized to a smaller resolution (ex. 320px width for mobile view)
Setting the img
to have max-width: 100%
is usually recommended and I believe is also a standard in most modern CSS resets -- a good practice to include one at the start of the styles. I recommend these if you'd like to give them a read:
Hope these help!
Hi, feel free to comment my work ! It'll be very helpful for me :)
Hello and good job on the solution! Just wanted to provide further suggestions:
rem
instead of px
for font sizing to make the design more accessible and responsive—this is mentioned on a separate article from FED MentorHope these are helpful! Best of luck!