123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation

     

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div class="form-column">
<form id="mktoForm_1525"></form>
<div id="confirmform" style="visibility:hidden;"><p><strong>Thanks for submitting. Somebody will be in touch with you shortly.</strong.</p></div>
</div>
            
          
!
            
              @import url('https://cdn.northerntrust.com/common/webfonts/ntrsWebFonts.css');

.form-column {
   width: 25%;
}

.mktoForm {
	visibility: hidden;
}

.mktoForm[data-styles-ready="true"] {
	visibility: visible;
}

.mktoTextField, .mktoEmailField, .mktoTelField {
   width: 100%;
   height: 40px;
   font-size: 13px;
   margin-top: 5px;
   padding: 0 10px;
   font-family: 'Equip-Regular';
   border: 1px solid #9b9b9b;
}

.mktoForm textarea {
   width: 100%;
   height: 100px;
   font-size: 13px;
   margin-top: 5px;
   padding: 10px;
}

.mktoForm textarea.mktoValid {
    border: 2px solid rgb(238, 238, 238);
}

.mktoForm input:focus, .mktoForm textarea:focus, .mktoForm select:focus {
   ouline: 1px solid orange;
}

.mktoForm select {
    width: 100%;
    height: 40px;
    border-radius: 0;
    -webkit-border-radius: 0px;
    background: white;
   -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='24' height='24' viewBox='0 0 24 24'><path fill='#444' d='M7.406 7.828l4.594 4.594 4.594-4.594 1.406 1.406-6 6-6-6z'></path></svg>");
    background-position: 100% 50%;
    background-repeat: no-repeat;
    padding: 0 10px;
    font-size: 13px;
}

.mktoForm option {
   font-size: 13px;
   font-family: 'Equip-Regular';
}

.mktoRequiredField .mktoLabel:after {
    content: "*";
    position: relative;
    right: -2px;
}

.mktoCheckboxList.mktoValid, .mktoCheckboxList.mktoInvalid{
   border: none;
}

.mktoTextField.mktoInvalid, .mktoEmailField.mktoInvalid, .mktoTelField.mktoInvalid {
   border: 1px solid #d04532;
}

.mktoTextField.mktoValid, .mktoEmailField.mktoValid, .mktoTelField.mktoValid {
   border: 1px solid #64a70b;
}


.mktoForm #Company .mktoValid {
   border: initial;
}

.mktoErrorMsg {
   color: #d04532;
   margin-top: 5px;
   font-family: 'Equip-Regular';
   font-size: 12px;
}

.mktoAsterix {
    display: none;
}

.mktoFormRow {
   margin: 10px 0;
}

.mktoLabel, label {
   font-family: 'Equip-Medium';
   font-size: 13px;
   color: #3d4042;
   font-weight: 500;
}


.mktoCheckboxList input {
    opacity: 0;
    position: absolute;   
}

.mktoCheckboxList input, .mktoCheckboxList label {
    display: inline-block;
    vertical-align: middle;
    margin: 5px;
    cursor: pointer;
}

.mktoCheckboxList label {
    position: relative;
}

.mktoCheckboxList input + label:before {
    content: '';
    background: #fff;
    border: 2px solid #ddd;
    display: inline-block;
    vertical-align: middle;
    width: 12px;
    height: 12px;
    font-size: 13px;
    padding: 2px;
    margin-right: 10px;
    text-align: center;
}

.mktoCheckboxList input:checked + label:before {
      background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='18' height='18' viewBox='0 0 18 18'><g stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'><g transform='translate(-3.000000, -3.000000)' fill='#64A70B' fill-rule='nonzero'><path d='M19,3 L5,3 C3.89,3 3,3.9 3,5 L3,19 C3,20.1 3.89,21 5,21 L19,21 C20.11,21 21,20.1 21,19 L21,5 C21,3.9 20.11,3 19,3 Z M10,17 L5,12 L6.41,10.59 L10,14.17 L17.59,6.58 L19,8 L10,17 Z' id='Shape'></path></g></g></svg>");
    background-position: -1px;
    background-repeat: no-repeat;
    border: 2px solid #64a70b;
}

.mktoCheckboxList > label {
	margin-left:0;
   width: 45%;
}

.mktoButton {
    width: 100%;
    border-radius: 0;
    height: 40px;
    border: 0;
    background: #115740;
    color: white;
    font-size: 14px;
    transition: 0.3s;
}


.mktoButton:hover {
   cursor: pointer;
   background: #2d8031;
}

.mktoForm h2 {
   font-family: 'Equip-Light';
   font-size: 34px;
   color: #3d4042;
   margin: 8px 0 15px;
}

.mktoForm h4 {
   font-family: 'Equip-Light';
   font-size: 13px;
   text-transform: uppercase;
   color: #3d4042;
   letter-spacing: 1.7px;
   margin-bottom: 0;
}

.mktoForm p {
   font-family: 'Equip-Regular';
   font-size: 13px;
   color: #3d4042;
   line-height: 1.38;
}

.mktoForm p.required {
   font-family: 'Equip-LightItalic';
   font-size: 13px;
   color: #3d4042;
   text-align: right;
   margin: 0;
}

#mktoForm_1525 > div:nth-child(8) > div:nth-child(2) {
    width: 45%;
    float: right;
    margin-left: 40px;
}

#mktoForm_1525 > div:nth-child(8) > div:nth-child(1) {
    width: 45%;
    float: left;
}

#mktoForm_1525 > div:nth-child(9) {
    clear: both;
    padding-top: 20px;
}

            
          
!
            
                    /*
 * @author Sanford Whiteman
 * @version v1.104
 * @license MIT License: This license must appear with all reproductions of this software.
 *
 * Create a completely barebones, user-styles-only Marketo form
 * by removing inline STYLE attributes and disabling STYLE and LINK elements
 */
function destyleMktoForm(mktoForm, moreStyles){
    var formEl = mktoForm.getFormElem()[0],
        arrayFrom = Function.prototype.call.bind(Array.prototype.slice);

    // remove element styles from <form> and children
    var styledEls = arrayFrom(formEl.querySelectorAll("[style]")).concat(formEl);   
    styledEls.forEach(function(el) {
        el.removeAttribute("style");
    });

    // disable remote stylesheets and local <style>s
    var styleSheets = arrayFrom(document.styleSheets);  
    styleSheets.forEach(function(ss) {
        if ( [mktoForms2BaseStyle,mktoForms2ThemeStyle].indexOf(ss.ownerNode) != -1 || formEl.contains(ss.ownerNode) ) {
            ss.disabled = true;
        }
    });
         
   if(!moreStyles) {
      formEl.setAttribute("data-styles-ready", "true");
   }
};

MktoForms2.whenRendered(function(form) {
  destyleMktoForm(form);
});

// Form Submission Message 
MktoForms2.whenReady(function (form){
  //Add an onSuccess handler
    form.onSuccess(function(values, followUpUrl){
    //get the form's jQuery element and hide it
    form.getFormElem().hide();
    document.getElementById('confirmform').style.visibility = 'visible';
    //return false to prevent the submission handler from taking the lead to the follow up url.
    return false;
  });
});
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console