Search code examples
javascripthtmlcssresponsive-designmedia-queries

Getting multiple height values from a single responsive element


I have a HTML element that varies in height dependent on what media query is being called.

Is there any way that I can store the height of the element for both queries on document load, if the css is height: auto; ?


Solution

  • try to use the $(selector).height( value ) to get or set the height