Размер видео: 1280 X 720853 X 480640 X 360
Показать панель управления
Автовоспроизведение
Автоповтор
you only need to write object fit cover on the image instead of the container...
Pardon me, isn't it already 'object-fit: cover', take a look at class '.block' on 3:05
@@MishaLestev probably a specificity problem here, I do a tons of cards in my designs and object fit cover always works
I usually solve this issue by either making a parent div and setting overflow hidden on it, or by using background image in css.Nice to know why this happens tho, Thanks for sharing!
you only need to write object fit cover on the image instead of the container...
Pardon me, isn't it already 'object-fit: cover', take a look at class '.block' on 3:05
@@MishaLestev probably a specificity problem here, I do a tons of cards in my designs and object fit cover always works
I usually solve this issue by either making a parent div and setting overflow hidden on it, or by using background image in css.
Nice to know why this happens tho, Thanks for sharing!