Aligning button and input box inline
-
Would appreciate any help with this, folks.
I think there should be an easy fix for this, but I cannot figure it out.
Link: https://storyacious.com/storyacious-practices-on-writing-vignettes/
At the bottom of the post, I have a widget with a subscribe form. I need the subscribe button to be inline with the email address input box. I’ve tried all kinds of things and spent the entire morning googling but cannot find a simple workable solution.
My HTML and CSS codes are below.
?[ Moderator note: please wrap code in backticks or use the code button. ]
/* optin2 HTML */ <div id="optin2"> <form action="https://storyacious.us6.list-manage.com/subscribe/post?u=16b93bbd03566c7becc6bd172&id=b534f6c526" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate> <input type="email" SIZE="15" value="Type email address" name="EMAIL" class="required email" id="mce-EMAIL" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"> <div id="mce-responses" class="clear"> <div class="response" id="mce-error-response" style="display:none"></div> <div class="response" id="mce-success-response" style="display:none"></div> </div> <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"> </form> </div> /* End optin2 HTML */ /* optin2 CSS */ #optin2 { background: #6c6c6c url(wp-content/uploads/mc-images/gloss.png) no-repeat bottom center; border-bottom: 25px solid #6c6c6c; color: #fff; padding: 10px 15px 20px; text-shadow: 1px 1px #111; } #optin2 input { border: 1px solid #585858; font-size: 13px; margin-bottom: 10px; padding: 8px 5px; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; box-shadow: 0 2px 2px #5a5a5a; -moz-box-shadow: 0 2px 2px #5a5a5a; -webkit-box-shadow: 0 2px 2px #5a5a5a; width: 40%; float: left; } #optin2 input.email { background: #ffffff; padding-left: 15px; } #optin2 input[type="submit"] { background: #f6640e url(wp-content/uploads/mc-images/orange.png) repeat-x top; border: none; color: #fff; cursor: pointer; font-size: 12px; font-weight: bold; padding: 8px 0; text-shadow: none; text-transform: uppercase; width: 20%; margin-top: 5px; margin-left: 5px; } #optin2 input[type="submit"]:hover { color: #ffdeb3 } /* End optin2 CSS */
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Aligning button and input box inline’ is closed to new replies.