Hi @amitsksingh,
Thanks for reporting the issue, and for your patience while we looked for a solution.
This will require custom code to adjust the submit button after clicking on it. For this:
1) Remove all the !important
flags from the previous CSS snippet I shared. Alter it to this:
@media screen and (min-width: 601px) {
#wpforms-submit-102 {
margin-left: 70%;
width: 30%;
margin-top: -105px;
}
}
@media screen and (max-width: 600px) {
#wpforms-submit-102 {
width: 100%;
margin-top: 15px;
}
}
2) Add this PHP snippet to your site:
/**
* Change the margin-top property when clicking on the submit button
*
* @link https://wpforms.com/developers/wpforms_wp_footer_end/
*/
function wpf_dev_change_margin_top_on_click( ) {
?>
<script type="text/javascript">
jQuery(function($){
$('#wpforms-submit-102').click(function() {
$(this).css('margin-top', '-167px');
});
});
</script>
<?php
}
add_action( 'wpforms_wp_footer_end', 'wpf_dev_change_margin_top_on_click', 30 );
In case it helps, here’s our tutorial with the most common ways to add custom code like this. For the most beginner-friendly option in that tutorial, I’d recommend using the WPCode plugin.
Here is a screencast of the result you should see.
I hope this helps!