Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <section class="digitfreakbanner">
  <div class="banner"> <img src="https://digitfreak.com/wp-content/uploads/2017/06/frontbackground.png" alt="banner"></div>
  <div class="digitfreakbannerinner">
    <div class="digitfreakdata">
      <h2>Join DigitFreak Community</h2>
      <h3>Receive Exclusive Personalised content right in your Inbox. </h3>
    </div>
    <div class="digitfreaknewsletter">
      <div class="digitfreaknewsletterinner">
<!-- This is the code you will get from Mailchimp’s NAKED Signup Form -->
<div id="mc_embed_signup">
    <form action="//digitfreak.us13.list-manage.com/subscribe/post?u=87132d3c2e6ea993cca28a419&amp;id=d9f840a4e3" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
        <div id="mc_embed_signup_scroll">

        <!-- Text Input Field -->
          <div class="mc-field-group"><input type="text" placeholder="Your Name" name="FNAME" class="required" id="mce-FNAME">
</div>
        <div class="mc-field-group"><input type="email" placeholder="Your Email" name="EMAIL" class="required email" id="mce-EMAIL"></div>
        <!-- /Text Input Field -->

        <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><!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->

        <div style="position: absolute; left: -5000px;"><input type="text" name="b_0b5586be71b0fee16a03f5684_e41ec18eab" tabindex="-1" value=""></div>

        <!-- Submit Button -->
        <div class="clear"><input type="submit" value="Let Me In!" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
        <!-- /Submit Button -->
        </div>
    </form>
</div>
<!--End mc_embed_signup-->
      </div>
    </div>
              
            
!

CSS

              
                #mc_embed_signup { border: none; text-align: center; width: 100%; } /* Signup form container */

.mc-field-group { display: inline-block; } /* positions input field horizontally */

#mce-EMAIL{ font-size: 1em!important; border: 2px solid #ABB0B2 ; color: #343434; background-color: #fff; padding: .7em 9em .7em 1em; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; display: inline-block; margin: 0; } /* Input Styles */
#mce-FNAME{ font-size: 1em!important; border: 2px solid #ABB0B2 ; color: #343434; background-color: #fff; padding: .7em 9em .7em 1em; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; display: inline-block; margin: 0; } /* Input Styles */

.clear { display: inline-block; } /* positions button horizontally in line with input */

.button { font-size: 1em!important; letter-spacing: .03em; color: #fff; background-color: #2386C8!important ; padding: .7em 2em!important; border: 2px solid #2386C8 ; -webkit-border-radius: 3px; -moz-border-radius: 3px; border-radius: 3px; display: inline-block; margin: 0; } /* Button Styles */

:-webkit-input-placeholder { color: #ABB0B2 ; } /* WebKit browsers */ 
:-moz-placeholder { color: #ABB0B2 ; } /* Mozilla Firefox 4 to 18 */
::-moz-placeholder { color: #ABB0B2 ; } /* Mozilla Firefox 19+ */
:-ms-input-placeholder { color: #ABB0B2 ; } /* Internet Explorer 10+ */

@media (max-width: 768px) { /* positions input field and button underneath each other with 100% width for tablet and mobile */
  
.mc-field-group { display: block; max-width: 100%; }
#mce-EMAIL { padding: .7em 0 .7em 1em; width: 96%; margin: 0; }
#mce-FNAME { padding: .7em 0 .7em 1em; width: 96%; margin: 0; }
.clear { display: block; width: 100% }
.button { width: 96%; margin: .5em 0 0 0; }
.banner {
    width: 100%;
    background: #34444e;
    min-height: 363px;
  }
.digitfreakbannerinner {
    width: 100%;
    padding: 0 10px;
  }
.shoutdata {
    top: 10%;
  }
.shoutnewsletter {
    bottom: 8%;
}
  
}
.digitfreakbanner {
    width: 100%;
    margin: 0 auto;
    position: relative;
}
.banner {
    position: relative;
    display: inline-block;
    width: 100%;
}
.banner img {
    position: relative;
    display: inline-block;
    width: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}
.digitfreakbannerinner {
    width: 1140px;
    margin: 0 auto;
}
.digitfreakdata {
    position: absolute;
    display: inline-block;
    top: 10%;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.digitfreakdata h2 {
    line-height: 1.4;
    color: #fff;
}
.digitfreakdata h3 {
    color: #fff;
}
.digitfreaknewsletter {
    position: absolute;
    display: inline-block;
    bottom: 5%;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}
.digitfreaknewsletter form {
    display: block;
    margin-top: 0em;
}
              
            
!

JS

              
                
              
            
!
999px

Console