and so on. If you do it this way, you don't need the display property and the linebreak.
Except for the fact you're doing something different than the intent and it will have a different effect in browsers. Changing the display type to inline is the technically correct method of doing what the thread starter asked. Should they ALSO want to remove any whitespace that certain browsers will display, only then would your method be applicable and recommended.