Hi dalai2017,
It looks like you almost had it! It looks like the reason that the max-width wasn’t working is because the width was too wide, allowing the button to spill over the edge of the container. Here’s the revised CSS I would suggest:
#wpforms-15468 .wpforms-submit {
margin: 0 auto !important;
border-radius: 600px !important;
}
#wpforms-15468 .wpforms-form input, .wpforms-form textarea {
border: none !important;
border-bottom: 1px solid #cbcbcb !important;
}
#wpforms-15468 .wpforms-form textarea {
height: 38px !important;
resize: none !important;
}
#wpforms-15468 .wpforms-submit-container,
#wpforms-15468 .wpforms-submit {
width: 100% !important;
}
I removed the 750px width, setting it instead to 100% for both the button and it’s container.
Could you give that a shot and let us know how it goes?
Thanks! 🙂
That works perfectly! Thank you for organizing my code!
Hi Jess,
One more form puzzle, here.
I am having a similar responsive problem with one of my other forms: http://dalaigroup.com/services/digital-ux/
First, the button is not responsive on mobile.
The field information and the submit button should be the same streamline width, as demonstrated by the current pixel settings. Both the field information and the button need to be responsive for mobile devices, so I should be using percentages… but the form should not take up the full width of the page.
So, there are 2 new variables. 1) The field information and the button should only have a width of about 75% of the page. 2) The form information and button should be centered on the page.
I’ve tried to incorporate all of this and things ended up misaligned or unresponsive on my phone. Here’s what I have set up currently. Any help is appreciated!
#wpforms-15737 .wpforms-field-container {
max-width: 800px !important;
margin: 0 auto !important;
}
#wpforms-15737 .wpforms-submit-container {
text-align:center;
}
#wpforms-15737 .wpforms-submit {
width: 800px !important;
border-radius: 600px !important;
}
#wpforms-15737 .wpforms-form input, .wpforms-form textarea{
border: none !important;
border-bottom: 1px solid #cbcbcb !important;
}
#wpforms-15737 .wpforms-form textarea{
height: 38px !important;
resize: none !important;
}
Hi dalai2017,
Could you give this CSS a try?
#wpforms-15737 .wpforms-submit-container {
width: 100%;
text-align: center;
}
#wpforms-15737 .wpforms-submit {
width: 75% !important;
}
Let me know if that does what you’re looking for 🙂
Sorry for the double post. That’s exactly what I needed for the second form. Thank you, again.