CSS for Making Email Opt-In Fit Mobile Devices -


i need making email opt-in bar under header @ same on mobile devices on desktop. here website.

i not skilled in kind of coding appreciated! :)

here css using:

/* color , size of main bar */ #nsu-head {     background-color: #ffcfde;     padding: 34px; }  /* basic text color , placement */ #nsu-head p {     float: left;     color: #000000;     margin-top: -5px;     padding-right: 10px; }  /* placement of invitation text */ #nsu-head p.form_label {     text-transform: uppercase;     padding-left: 50px;     padding-right: 30px;     margin-top: 0; }  #nsu-form-1 label {     display: none; }  /* hides input field labels */ /* input button styling going circle drop shadow */ input#nsu-submit-1 { /* remove if don't care ie8 */ }  .type1 {     width: 100px;     height: 100px;     background: yellow;     border: 3px solid red; }  /* controls background color during inactive , hover states */ input#nsu-submit-1.nsu-submit {     background: no-repeat darkmagenta;     border: 1px solid darkmagenta; }  input#nsu-submit-1.nsu-submit:hover {     background: no-repeat black;     border: 1px solid black; }  /* placement of post sign text if no thank-you page */ p#nsu-signed-up-1 {     float: right;     font-size: .9rem;     color: #ddd;     padding-right: 0;     margin-top: -18px;     width: 45%; } 

your code quite messy, try doing this:

1) aweber's code. in source code looks this

<div class="nsu-form" id="nsu-head"> <p class="form_label">get <span style="font-style:italic;">free</span> &nbsp;tips healthier mama!</p> <!-- form newsletter sign-up v2.0.3 - http://wordpress.org/plugins/newsletter-sign-up/ --> <form class="nsu-form" id="nsu-form-0" action="http://www.aweber.com/scripts/addlead.pl" method="post"><p><label for="nsu-name-0"> </label><input class="nsu-field" id="nsu-name-0" type="text" name="name" placeholder="name"  /></p><p><label for="nsu-email-0"> </label><input class="nsu-field" id="nsu-email-0" type="email" name="email" placeholder="email" required /></p><textarea name="nsu_robocop" style="display: none;"></textarea><p><input type="submit" id="nsu-submit-0" class="nsu-submit" name="nsu_submit" value="get it!" /></p></form> <!-- / newsletter sign-up --> </div> 

it might different in aweber's code, you'll idea. now, if plugin allows to, try move part:

<p class="form_label">get <span style="font-style:italic;">free</span> &nbsp;tips healthier mama!</p> 

outside <div class="nsu-form" id="nsu-head"> (thus, paragraph has before nsu-form line)

once have all, sure remove have in code , add header-left, this:

<div id="header-left-section"> code here </div><!-- #header-left-section --> 

this make theme work expected. is: form on left , full width on mobile , nav on right , full width on mobile.

however, if want full width in screen, add css:

#header-left-section, #header-right-section{float:none !important; clear:both; display:block} 

this should fix every issue have


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -