Home › Forums › CSS › dependent dimensions in css › Reply To: dependent dimensions in css
May 9, 2016 at 11:37 am
#241413
bearhead
Participant
simplest way would be to give the parent element set dimensions, and then let the children elements be 100% width and height of that.
Or if you can’t specify exact dimensions, maybe try showing/hiding elements instead of changing their z-index:
http://codepen.io/kvana/pen/VagqBM