Quantcast
Channel: Active questions tagged flexbox - Stack Overflow
Viewing all articles
Browse latest Browse all 1675

Image height not working well on Safari while using CSS Grid

$
0
0

Hi i am having some troubles while trying to "fit" an image inside a css grid container (The problem only happends while using Safari, Firefox and Chrome is ok.) Problem is, the img height while using Safari takes all the available space and this makes the image looks deformed (Below is the link to the screenshot I took)

These are the properties I am applying to the image:

img {   flex-basis: calc(66.67% - 3.6rem);   width: 66.67%;   margin: 0 auto;}

Link to screenshot


Viewing all articles
Browse latest Browse all 1675

Trending Articles