I am trying (via jQuery) to get the max-height of a div set via CSS as a percentage value (45%).
In Firefox - it returns a pixel value, however, in Chrome/Safari, the value is returned as a percentage (45%). The jQuery code I am using to get these values is:
parseInt($('.content-section').css('max-height'))
Am I doing this the wrong way? How do I go about getting a pixel height in Chrome/Safari? Or even, a percentage height in Firefox?
EDIT:
The original CSS: .content-section {width: 880px; margin: 0 auto; max-height: 45%}
The computed CSS in chrome: 
The computed CSS in Firebug: 
max-heightand percentage? how can you combine these two in the first place? isn'tmax-heightsupposed to be the limit to a variable size? - Sharky