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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <form action="/search.html" class="search-wrapper cf">
        <input type="text" placeholder="What are you looking for?" required="">
        <button type="submit">Search</button>
</form>
              
            
!

CSS

              
                /* page defaults */

html {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    background: #002412;
}


/* search elements */

.cf:before, .cf:after{
    content:"";
    display:table;
}
 
.cf:after{
    clear:both;
}
 
.cf{
    zoom:1;
}    

 /* Form wrapper styling */
.search-wrapper {
width: 410px;
margin: 45px auto 50px auto;
}
 
/* Form text input */
 
.search-wrapper input {
width: 315px;
height: 45px;
padding: 10px 10px;
float: left;
font: bold 1em 'Helvetica Neue', Arial, Helvetica, sans-serif;
border: 0;
background: #f5f5f5;
  -webkit-border-top-left-radius: 2px;
  -webkit-border-bottom-left-radius: 2px;
  -moz-border-radius-topleft: 2px;
  -moz-border-radius-bottomleft: 2px;
  border-top-left-radius: 2px;
  border-bottom-left-radius: 2px;
}
 
.search-wrapper input:focus {
    outline: 0;
    background: #fff;
}
 
.search-wrapper input::-webkit-input-placeholder {
   color: #999;
   font-weight: normal;
}
 
.search-wrapper input:-moz-placeholder {
    color: #999;
    font-weight: normal;
}
 
.search-wrapper input:-ms-input-placeholder {
    color: #999;
    font-weight: normal;
}    
 
/* Form submit button */
.search-wrapper button {
overflow: visible;
position: relative;
float: right;
cursor: pointer;
height: 45px;
width: 95px;
font: bold 1em/1.5 'Helvetica Neue', Arial, Helvetica, sans-serif;
color: white;
text-transform: uppercase;
background: #f78d1d;
border: 1px solid #f78d1d;
  -webkit-border-top-right-radius: 2px;
  -webkit-border-bottom-right-radius: 2px;
  -moz-border-radius-topright: 2px;
  -moz-border-radius-bottomright: 2px;
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}
   
.search-wrapper button:hover{     
    background: #ff7e00;
}   
   
.search-wrapper button:active,
.search-wrapper button:focus{   
    background: #ff7e00;
    outline: 0;   
}
 
.search-wrapper button:before { /* left arrow */
    content: '';
    position: absolute;
    border-width: 11px 11px 11px 0;
    border-style: solid solid solid none;
    border-color: transparent #f78d1d transparent;
    top: 11px;
    left: -8px;
}
 
.search-wrapper button:hover:before{
    border-right-color: #ff7e00;
}
 
.search-wrapper button:focus:before,
.search-wrapper button:active:before{
        border-right-color: #ff7e00;
}      
 
.search-wrapper button::-moz-focus-inner { /* remove extra button spacing for Mozilla Firefox */
    border: 0;
    padding: 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console