This is incorrect. If I have padding left and right properties set, the padding right will override the padding left. You need to keep track of these paddings and apply them properly.