Dynamically get the padding and border