JQuery. We were trying to create a new theme for our Drupal site and we came across an issue. How to create div "left" to be the same height as div "right" which can be smaller or bigger?Leveraging the Power of Drupal Without Hacking Core A jQuery object is created from the array elements in the order they appeared in the array unlike most other multi- element jQuery operations, theAs of jQuery 1.4, any event type can be passed in, and the following jQuery methods can be called: val, css, html, text, data, width, height, or offset. Simple answer: use (elem).css(margin-top), (elem).css(padding-left), etc dont use (elem).css(margin) or (elem).css( padding), they return empty strings. Example cheton commented Jan 23, 2014. jQuery .height() and .