Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

height: 100% on an image inside a grid, resize the image to height 0 #47

Open
shaal opened this issue Jul 18, 2018 · 1 comment
Open

Comments

@shaal
Copy link

shaal commented Jul 18, 2018

In Chrome 67,
applying height: 100% to an img element inside a grid, will set the height of the image to 0

(Firefox doesn't have this problem)

Codepen: https://codepen.io/shaal-the-reactor/pen/RBGVVd

@hfhchan
Copy link

hfhchan commented Feb 5, 2019

I also hit the same issue here: (works in Fx, fails in Chrome) https://codepen.io/anon/pen/QzaLQJ

The only way was to use flex instead:
https://codepen.io/anon/pen/oJpvMZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants