Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery get padding of element

var $img = $('img');
var paddT = $img.css('padding-top') + ' ' + $img.css('padding-right') + ' ' + $img.css('padding-bottom') + ' ' + $img.css('padding-left');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #padding #element
ADD COMMENT
Topic
Name
7+1 =