optimized margins and paddings