How to have fluid height in css?

Qwasty_OH

New Member
I'm trying to make slide down effect on some items, on hover the image will slide down and show the content, the problem is when you resize the browser the images resize too because I have\[code\]img { max-width: 100%; }\[/code\] but the problem is I can't have a fluid height too, I can't use percentage height on them.This is what's happening:http://codepen.io/joe/pen/yLjExI set the background as black to see what's happening, and I currently have height 210px.So how can fix this issue ?
 
Back
Top