Does jQuery SVN have any functions for getting the dimensions (left,
right, top, bottom, width, height, z-index) of an element? Something
that also works across different browsers. I want to be able to do
something like this:

var me = $("#myelement");
var meD= $("#myelement").dimensions(0); // dimensions() would also get
the first match
var left = meD.left;

Or maybe a better way (having left, right, top etc as methods):

// set left, top and height (chain not broken)
$("#myelement").left("12px").top("-2em").height("6em");
// get width (chain broken)
var width = $("#myelement").width();

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to