I'm afraid this solution is totally broken for me on mobile in portrait and landscape. The card overflows my screen in both of those circumstances and scroll has been disabled meaning I can't see all the content
Some ideas for you
- use meaningful elements like paragraphs and headings etc, never have text in spans or divs alone
- decorative / meaningless images should have empty alt attributes, only valuable images need a readable description
- anything with a hover style means it's interactive. That means it's essential to use an interactive element there every time
- remove all heights, widths, positions fixed and absolutes from this challenge. You don't need them and they are breaking your solution. Instead all you need for the sizing is: (1) a max width in rem (or px if you're not comfortable using rem yet) on the card; (2) a little padding and margin on that card (margin will stop it hitting screen edges, you could also acheive this with padding on an outer element like the body); (3) display block and width 100% on the image.
I hope this points you in the right direction - start making those changes in devtools with it open on the side and you'll start to see the benefits as you shrink and grow the viewport
Marked as helpful
@alonshav
Posted
@grace-snow Thank you so much for your super helpful advice! I really appreciate it. I'll do my best to fix these issues according to your guidance.