jquery add css padding code example
Example 1: how to give a label padding through jquery
$(document).ready(function() {
$(".box h3").not(":first").css("paddingTop","10px");
});
Example 2: how to give a label padding through jquery
$(document).ready(function() {
var paddingTop = 10;
$(".box h3").not(":first").each(function() {
$(this).css("paddingTop",paddingTop+"px");
paddingTop +=10;
});
});
Example 3: set padding jquery
$('#element').css('padding','0')