I just ran into a problem getting the border width from elements. This isn't a specific jQuery problem but might end up in an improvment...). I need to get the exact width of an element (width+padding+margin+border). So, i discovered some strange results while retrieving the border width.
I've setup a quick and dirty test at: http://sorgalla.com/test/borders.html IE6 and Opera (9.01): If no style is assigned, IE returns "medium" and Opera returns 3 (which might be the default value for "medium"). All other assigned borders are returned (more or less) correctly. Firefox (1.5.0.6) and Safari (2.0.4): If no style is assigned, return value is 0px. Border width is only returned correctly if its assigned in the style attribute of the element, otherwise it returns 0px (incorrect). Any suggestion how solve that? Thanks, Jan -- View this message in context: http://www.nabble.com/Problems-getting-border-width-tf2239933.html#a6211764 Sent from the JQuery forum at Nabble.com. _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
