earthwindflowermoon Posted September 27, 2022 Share Posted September 27, 2022 Site URL: https://malenyvedicvillage.squarespace.com/ Hello community!! I am using the below code to have 'email' and 'phone' fields on the same line in this form... /* 2 column form */ @media screen and (min-width:768px) { div#block-yui_3_17_2_1_1663306565143_2737 { .form-item.field.email { float: left; width: 49%; margin-right: 2%; } .form-item.field.email+div { float: left; width: 49%; } } } It works perfectly but I have also been trying to float the fields 'zip/postal code' and 'country' to no avail. I would also like to have the drop down select on the same line.... 'what is the reason for your interest?' and 'what is your budget?' Please help. I have tried all sorts of other code snippets and can't get it to work. Site pw is : Maharishi Many thanks for any help!!!! Link to comment
Solution tuanphan Posted September 27, 2022 Solution Share Posted September 27, 2022 Use this CSS @media screen and (min-width:768px) { div#block-yui_3_17_2_1_1663306565143_2737 .form-item:nth-child(n+5) { width: 49% !important; float: left; margin-right: 1%; } } earthwindflowermoon 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
earthwindflowermoon Posted September 28, 2022 Author Share Posted September 28, 2022 Very happy, thank you!!!!! Works great 🙂 tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment