cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <form action="/search.html" class="search-wrapper cf">
        <input type="text" placeholder="What are you looking for?" required="">
        <button type="submit">Search</button>
</form>
            
          
!
            
              /* 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;
}
            
          
!
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.
Loading ..................

Console