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 id="inline-form">
	<div class="row-fluid header">
    <h3>Download How To Drive More Traffic To Your Business Blog</h3>
    <p>Fill out the form below for tips on growing your readership</p>
   </div>
   <div class="row-fluid image">
     <img src="https://cdn2.hubspot.net/hub/145335/file-1155598961-jpg/get-more-traffic.jpg?t=1406732062746" alt="Drive more traffic to your website">
  </div>
	<div class="row-fluid form">
		<div class="hbspt-form" id="">
			<form accept-charset="UTF-8" enctype="multipart/form-data" id="hsForm_54f2a3c1-91cd-4081-a973-e291eb9dc8df" class="hs-form stacked" action="#" method="POST" novalidate="novalidate">
				<fieldset class="form-columns-2">
					<div class="hs_firstname field hs-form-field smart-field">
						<label placeholder="Enter your First Name" for="firstname-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							First Name<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="text" required="required" id="firstname-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="firstname" value="" placeholder="">
						</div>
					</div>
					<div class="hs_lastname field hs-form-field smart-field">
						<label placeholder="Enter your Last Name" for="lastname-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							Last Name<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="text" required="required" id="lastname-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="lastname" value="" placeholder="">
						</div>
					</div>
				</fieldset>
				<fieldset class="form-columns-2">
					<div class="hs_website field hs-form-field smart-field">
						<label placeholder="Enter your Website" for="website-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							Website<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="text" required="required" id="website-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="website" value="" placeholder="">
						</div>
					</div>
					<div class="hs_company field hs-form-field smart-field">
						<label placeholder="Enter your Company" for="company-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							Company<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="text" required="required" id="company-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="company" value="" placeholder="">
						</div>
					</div>
				</fieldset>
				<fieldset class="form-columns-2">
					<div class="hs_industry_ field hs-form-field smart-field">
						<label placeholder="Enter your Industry" for="industry_-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							Industry<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<select class="hs-input" id="industry_-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="industry_" required="required">
								<option value="__PLACEHOLDER__">- Please Select -</option>
								<option value="Software as a service">Software as a service</option>
								<option value="B2B service">B2B service</option>
								<option value="Professional service">Professional service</option>
								<option value="Ecommerce">Ecommerce</option>
								<option value="Wholesale products">Wholesale products</option>
								<option value="Marketing agency">Marketing agency</option>
								<option value="Other">Other</option>
							</select>
						</div>
					</div>
					<div class="hs_role_at_company__c field hs-form-field smart-field">
						<label placeholder="Enter your Role at Company" for="role_at_company__c-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							Role at Company<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<select class="hs-input" id="role_at_company__c-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="role_at_company__c" required="required">
								<option value="__PLACEHOLDER__">- Please Select -</option>
								<option value="Owner / Partner">Owner / Partner</option>
								<option value="CEO / Executive Management">CEO / Executive Management</option>
								<option value="CMO / VP of Marketing">CMO / VP of Marketing</option>
								<option value="Marketing">Marketing</option>
								<option value="Sales">Sales</option>
								<option value="Other">Other</option>
							</select>
						</div>
					</div>
				</fieldset>
				<fieldset class="form-columns-2">
					<div class="hs_phone field hs-form-field smart-field">
						<label placeholder="Enter your Phone" for="phone-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							Phone<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="text" required="required" id="phone-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="phone" value="" placeholder="">
						</div>
					</div>
					<div class="hs_email field hs-form-field smart-field">
						<label placeholder="Enter your Email (<a href=&quot;http://www.impactbnd.com/privacy-policy.html&quot;>Privacy Policy</a>)" for="email-54f2a3c1-91cd-4081-a973-e291eb9dc8df">
							Email (<a href="http://www.impactbnd.com/privacy-policy.html">Privacy Policy</a>)<span class="hs-form-required"> * </span>
						</label>
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="email" required="required" id="email-54f2a3c1-91cd-4081-a973-e291eb9dc8df" name="email" value="" placeholder="">
						</div>
					</div>
				</fieldset>
				<fieldset class="form-columns-1">
					<div class="hs_subscribe_me_to_the_impact_blog field hs-form-field smart-field">
						<label placeholder="Enter your Subscribe me to the IMPACT Blog" for="subscribe_me_to_the_impact_blog-54f2a3c1-91cd-4081-a973-e291eb9dc8df"></label>
						<div class="hs-field-desc" style="display: none;"></div>
						<ul class="inputs-list">
							<li class="hs-form-booleancheckbox">
								<label class="hs-form-booleancheckbox-display" for="subscribe_me_to_the_impact_blog">
								<input type="checkbox" value="true" name="subscribe_me_to_the_impact_blog" id="subscribe_me_to_the_impact_blog" class="hs-input">
									Subscribe me to the IMPACT Blog
								</label>
							</li>
						</ul>
					</div>
				</fieldset>
				<fieldset class="form-columns-1">
					<div class="hs_tofu__c field hs-form-field" style="display: none;">
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="hidden" name="tofu__c" value="true">
						</div>
					</div>
				</fieldset>
				<fieldset class="form-columns-1">
					<div class="hs_leadsource field hs-form-field" style="display: none;">
						<div class="hs-field-desc" style="display: none;"></div>
						<div class="input">
							<input class="hs-input" type="hidden" name="leadsource" value="Inbound">
						</div>
					</div>
				</fieldset>
				<div class="hs_submit">
					<div class="hs-field-desc" style="display: none;"></div>
					<div class="actions">
						<input class="hs-button primary large" type="submit" value="Download for Free">
					</div>
				</div>
			</form>
		</div>
	</div>
</section>
              
            
!

CSS

              
                @import "bourbon";

section#inline-form {
	background:#eee;
  width:100%;
  max-width:670px;
  margin:30px auto;
  
  .header {
    padding:30px;
    text-align: center;
    background:#666666;
    
    h3 {
      margin-top:0px!important;
      padding-bottom:15px!important;
      border-bottom:1px solid rgba(255, 255, 255, .5);
      font-size:24px!important;
      color:#fff;
    }
    
    p {
      margin-bottom:0px!important;
      font-size:20px !important;
      line-height: 24px !important;
      color:#fff;
    }
  }

  .image {
    padding:0px;
    border:1px solid #ccc;
    border-top:none;
  
    img {
      max-width:100%;

      @media(max-width:767px) {
        display:none;
      }
    }
  }

  .form {
    padding:30px;
    border:1px solid #ccc;
    border-top:none;
    z-index: 1!important;
    margin-bottom:0px;
    
    fieldset,
    .hs-form .hs-input, 
    .hs-form textarea.hs-input {
      max-width:none !important;
      width:100% !important;
      border:none;
    }

    .hs-form .hs-input, 
    .hs-form textarea.hs-input {
      border:1px solid #ccc!important;
    }

    .hs-form input:not([type=image]), 
    .hs-form textarea {
      box-sizing:border-box!important;
      padding:20px 10px!important;
      box-shadow:none !important;
    }

    .hs-form fieldset.form-columns-1 input[type=checkbox], 
    .hs-form fieldset.form-columns-1 input[type=radio] {
      width:auto!important;

      @media(max-width:767px) {
        width:15px!important;
        vertical-align: middle !important;
      }
    }

    .hs-form fieldset.form-columns-3 .hs-form-field {
      width:31.333333333% !important;
      margin-right: 3% !important;
    }

    .hs-form fieldset.form-columns-3 .hs-form-field:nth-child(3) {
      margin-right: 0% !important;
    }

    .hs-form fieldset.form-columns-2 .hs-form-field {
      width:48.5% !important;
      float:left;

      @media(max-width:767px) {
        width:100%!important;
      }
    }

    .hs-form fieldset.form-columns-2 .hs-form-field:first-child {
      margin-right:3% !important;
    }

    .hs-form.stacked .actions {
      margin:0px!important;
      padding:0px !important;
    }

    .hs-form .hs-button {
      background: #35b34d!important;
      box-shadow:none !important;
      border:none!important;
      text-shadow:none!important;
      font-size:16px!important;
      display:block!important;
      line-height:16px!important;
      width:100%!important;
      max-width:none !important;
      apple-appearance: none;
      -webkit-appearance: none;
    }
  }
}
              
            
!

JS

              
                
              
            
!
999px

Console