Margin adjustments in floating boxes