Dynamic padding 

this function is same, but sometimes we need padding, and no margin!