Set class to your text boxes (or input[type="text"]
) and CSS:
For desktop:
.yourclass {
width: 33%;
float: left;
}
For mobile:
@media only screen and (max-device-width: 480px) {
.yourclass {
width: 100%;
float: left;
}
}
This: https://mislav.net/2010/04/targeted-css/ may be helpful.