Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Tag: Resize

JQuery Dynamic Height and Width

28 November, 2012 | jQuery | By: Michael Adams

I was working on a few pages where I wanted the content to automatically fill the height/width regardless of browser size. I set my DIV tag with a id of “Content” and then created the following JQuery automatically scale the DIV tag to the appropriate height and width. I only have one DIV tag that required dynamic height and width so I was able to just subtract the height and width of the other elements on the page. Replace N with the height/width of the other elements on the page. The JQuery: JQuery Break down: I use $(window).height() to get [Read More…]