Note: The codes provided in this article are for desktop use only. On mobile devices, the form fields will show in one column.
Open your landing page editor and paste the code in the HTML/CSS-Head section of your page:
1. Target exactly which 2 form fields you would want to align horizontally
Make sure to edit the code and add the correct field numbers in between parentheses and the result will look like this.
2. Target all fields present in the form and align them in two columns
The above code will make your form look like this:
3. Align 3 form fields horizontally
Make sure to edit the code and add the correct field numbers in between parentheses and the result will look like this:
This solution is a combination between the first two, we are targeting exactly which fields we want to align and also, we are applying these changes only to desktop screen sizes, the form fields will not be aligned horizontally on mobile devices.
Note: You will only see the changes in the live environment, not in the builder.