@Eve-WangariSubmitted over 1 year ago
The responsive design works fine, except for the768px break, the cards overflow their container, how can I avoid that.
The responsive design works fine, except for the768px break, the cards overflow their container, how can I avoid that.
The reason of such behavior is because you have reached the minimum width of the card container. If you open dev tools and start to shrink the window you might notice that its caused by:
So to make the card container shrink even more, you need to make the img not to have fixed width or to make h3 and p break every letter. It won't look nice but I hope you get an idea.
To make the img not having fixed width you can add two additional properties into it:
To make h3 and p break every letter you can add word-break: break-all property;
Please let me know if something is unclear and I will try to explain it better