Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get total width of element including padding and border using jquery

$(elem).outerWidth(); // Returns the width + padding + borders
$(elem).outerWidth( true ); // Returns the width + padding + borders + margins
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #total #width #element #including #padding #border #jquery
ADD COMMENT
Topic
Name
9+8 =