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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ 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

              
                <div class="wrapper">

  <form accept-charset="UTF-8" method="post" action="#" class="form" id="pardot-form">

    <p>Lorem Ipsum ...</p>
    
          <p class="form-field  first_name pd-text required    ">

              <label class="field-label" for="428972_392661pi_428972_392661">Name</label>


            <input type="text" name="428972_392661pi_428972_392661" id="428972_392661pi_428972_392661" value="" class="text" size="30" maxlength="40" onchange="" placeholder="Nome*"></p>
          <div id="error_for_428972_392661pi_428972_392661" style="display:none"></div>


          <p class="form-field  email pd-text required    ">

              <label class="field-label" for="428972_392663pi_428972_392663">Email</label>


            <input type="text" name="428972_392663pi_428972_392663" id="428972_392663pi_428972_392663" value="" class="text" size="30" maxlength="255" onchange="piAjax.auditEmailField(this, 428972, 392663, 132743708);" placeholder="Email*"></p>
          <div id="error_for_428972_392663pi_428972_392663" style="display:none"></div>


          <p class="form-field  phone pd-text required    ">

              <label class="field-label" for="428972_392665pi_428972_392665">Phone</label>


            <input type="text" name="428972_392665pi_428972_392665" id="428972_392665pi_428972_392665" value="" class="text" size="30" maxlength="40" onchange="" placeholder="Telefone*"></p>
          <div id="error_for_428972_392665pi_428972_392665" style="display:none"></div>


          <p class="form-field  company pd-text required    ">

              <label class="field-label" for="428972_392667pi_428972_392667">Company</label>


            <input type="text" name="428972_392667pi_428972_392667" id="428972_392667pi_428972_392667" value="" class="text" size="30" maxlength="255" onchange="" placeholder="Empresa*"></p>
          <div id="error_for_428972_392667pi_428972_392667" style="display:none"></div>


          <p class="form-field  tamanho_da_empresa pd-select required    ">

              <label class="field-label" for="428972_393744pi_428972_393744">Company size</label>


            <select name="428972_393744pi_428972_393744" id="428972_393744pi_428972_393744" class="select" onchange="" placeholder="Tamanho da empresa*"><option value="" selected=""></option><option value="4500378">Micro</option><option value="4500380">Small</option><option value="4500382">Medium</option><option value="4500384">Large</option></select></p>
          <div id="error_for_428972_393744pi_428972_393744" style="display:none"></div>




      <p style="position:absolute; width:190px; left:-9999px; top: -9999px;visibility:hidden;">
        <label for="pi_extra_field">Comments</label>
        <input type="text" name="pi_extra_field" id="pi_extra_field" placeholder="Comments"></p>


        <!-- forces IE5-8 to correctly submit UTF8 content  -->
        <input name="_utf8" type="hidden" value="☃"><p class="submit">
          <input type="submit" accesskey="s" class="enviar w-button" value="Quero receber"></p>




    <input type="hidden" name="hiddenDependentFields" id="hiddenDependentFields" value="">
    
  </form>
  
</div>
              
            
!

CSS

              
                .form p label {display:none}
.form input:focus{
  outline: none !important;
    border:1px solid #D32E28;
}
.form select:focus{
  outline: none !important;
    border:1px solid #D32E28;
}
.wrapper{width:50%;margin:0 auto;padding:0}
.text, .select {
    display: block;
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #333333;
    vertical-align: middle;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    padding-left: 25px;
    border-radius: 100px;
}

.enviar{
  color: white;
  border: 0;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  border-radius: 100px;
  background-color: #f62617;
  font-size: 14px;
  font-weight: 700;
  padding: 2% 25%;
  text-align: center;
  width: 100%;
  color:#fff
}
              
            
!

JS

              
                var labels = document.querySelectorAll("label");
var i = labels.length;
while (i--) {
	var label = labels.item(i);
	var text = label.textContent;
	label.parentNode.classList.contains("required") && (text += "*");
	label.nextElementSibling.setAttribute("placeholder", text);
}

var selected = document.getElementsByClassName("select")[0];
selected[0].innerHTML = selected.attributes.placeholder.nodeValue;
selected[0].value = "";
              
            
!
999px

Console