Add <code>display: inline-block;</code> once the labels are wrapped around the inputs and the whole thing becomes a word-like unit that will wrap to a new line when necessary, but keep the label with its control.