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

              
                <div class="container">
  
  <p>Hey,</p>
  
  <p>Welcome to the Basin demo!</p>
  
  <p><b>Use your REAL email in order to recieve the auto-response email. Regardless, you can view and delete your submission here <a href="https://mailpoof.com/mailbox/basin@mailpoof.com" target="_blank">https://mailpoof.com/mailbox/basin@mailpoof.com</a></b></p>
  <p>You won't be added to any marketing lists or anything like that! No further follow up, marketing, or BS.</p>
  
  <p>Anthony</p>
  
  <br><br>
  
  <form action="https://usebasin.com/f/58759e3a33e0" method="post">

    <label for="fname">Favourite Food</label>
    <input type="text" id="food" name="favourite_food" placeholder="Favourite Food">

    <label for="email">Email</label>
    <input type="text" id="email" name="email" placeholder="Use your REAL email in order to preview the auto-response and data submission emails!">

    <label for="message">Message</label>
    <textarea id="message" name="message" placeholder="Just testing? Say hi." style="height:200px"></textarea>

    <button type="submit">Submit</button>

  </form>
</div>
              
            
!

CSS

              
                /* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
  width: 100%; /* Full width */
  padding: 12px; /* Some padding */  
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
button[type=submit] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #45a049;
}

/* Add a background color and some padding around the form */
.container {
  border-radius: 5px;
  background-color: #f2f2f2;
  padding: 20px;
}
              
            
!

JS

              
                
              
            
!
999px

Console