I use a service that returns dynamic HTML with a series of labels and inputs, for example.
input:after { content: "\a"; white-space: pre; }
<label for="username">Username</label> <input type="text" id="username" name="username" /> <label for="country">Country</label> <input type="text" id="country" name="country" />
I want the form to be formatted as follows:

But that will not work. It is not possible to surround labels and inputs with a div, as this is dynamic HTML returned by the service to me.
Any ideas on how this can only be achieved through CSS?
source share