Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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 id="wrapper"><div id="head">
<div id="left-nose" class="nose"></div>
<div id="right-nose" class="nose"></div>
<div id="mouth">
<form>
<input class="inputs" placeholder="Name">
<input class="inputs" placeholder="Email">
<textarea class="inputs" id="message" rows="8" cols="43" placeholder="Message"></textarea>
</div>
<div><input type="submit" id="submit" value="Submit" class="inputs"></form></div>
</div>
<div id="left-eye" class="eye">
<div id="left-eyeball" class="eyeball">
<div id="left-eyedot" class="eyedot"></div>
</div>
</div>
<div id="right-eye" class="eye">
<div id="right-eyeball" class="eyeball">
<div id="right-eyedot" class="eyedot"></div>
</div>
  </div></div>
              
            
!

CSS

              
                @charset "utf-8";

/* CSS Document */

body {
background-color: #fff9cb;
}

#wrapper {
  margin: 0 20% 0 0;
}

#form {
margin: 200px auto;
width:  700px;
height: 500px
background: green;
border: 1px dashed;
}

#head { 
width: 750px; 
height: 450px; 
background: #50b463; 
-moz-border-radius: 360px / 170px; 
-webkit-border-radius: 1360px / 170px; 
border-radius: 400px / 250px;
position: absolute;
margin: 175px 100px 50px 168px;
} 

.inputs {
color: #000;
font-size: 1em;
	font-weight: normal;
	background: none;
	text-align: center;
	font-family: Baskerville, "Palatino Linotype", Palatino, "Century Schoolbook L", "Times New Roman", serif;
	border: none;
outline: 0;
}

#submit {
background: #64cbd7;
border: none;
 -moz-border-radius: 200px; 
-webkit-border-radius: 200px; 
border-radius: 200px;
	margin: 500px 0 0 240px;
	width: 300px;
height: 50px;
font-size: 1.5em;
}

/******EYES******/
.eye {
width: 300px; 
height: 300px; 
background: #50b463;
-moz-border-radius: 150px; 
-webkit-border-radius: 150px; 
border-radius: 150px;
position: absolute;
}

.eyeball {
width: 200px; 
height: 200px; 
background: #fbdf3e;
-moz-border-radius: 100px; 
-webkit-border-radius: 100px; 
border-radius: 100px;
position: absolute;
}

.eyedot {
width: 30px; 
height: 30px; 
background: #000000;
-moz-border-radius: 15px; 
-webkit-border-radius: 15px; 
border-radius: 15px;
position: absolute;
}

/***LEFT-EYE****/
#left-eye {
margin:50px 50px 50px 200px;
} 

#left-eyeball { 
margin: 50px 60px 60px 50px;
} 

#left-eyedot {
margin: 80px 60px 60px 80px;
} 

/***RIGHT-EYE****/
#right-eye {
margin: 50px 50px 50px 600px
} 

#right-eyeball {
margin: 50px 60px 60px 50px;
} 

#right-eyedot {
margin: 80px 60px 60px 80px;
} 

/******NOSE******/

.nose {
 width: 20px; 
height: 20px; 
background: #48a35b;
-moz-border-radius: 7.5px; 
-webkit-border-radius: 7.5px; 
border-radius: 7.5px;
position: absolute;
}

#left-nose { 
margin: 140px 60px 60px 350px;
} 

#right-nose { 
margin: 140px 60px 60px 400px;
} 

/******MOUTH******/

#mouth { 
width: 400px; 
height: 255px;
text-align: center; 
background: #e09aba; 
/* Old browsers */ 
background: -moz-linear-gradient(top, #e09aba 0%, #e3a1bf 36%, #e3a1bf 41%, #e3a1bf 53%, #e27fac 100%); 
/* FF3.6+ */ 
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e09aba), color-stop(36%,#e3a1bf), color-stop(41%,#e3a1bf), color-stop(53%,#e3a1bf), color-stop(100%,#e27fac)); 
/* Chrome,Safari4+ */ 
background: -webkit-linear-gradient(top, #e09aba 0%,#e3a1bf 36%,#e3a1bf 41%,#e3a1bf 53%,#e27fac 100%); 
/* Chrome10+,Safari5.1+ */ 
background: -o-linear-gradient(top, #e09aba 0%,#e3a1bf 36%,#e3a1bf 41%,#e3a1bf 53%,#e27fac 100%); 
/* Opera 11.10+ */ 
background: -ms-linear-gradient(top, #e09aba 0%,#e3a1bf 36%,#e3a1bf 41%,#e3a1bf 53%,#e27fac 100%); 
/* IE10+ */
background: linear-gradient(to bottom, #e09aba 0%,#e3a1bf 36%,#e3a1bf 41%,#e3a1bf 53%,#e27fac 100%);
/* W3C */ 
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e09aba', endColorstr='#e27fac',GradientType=0 ); /* IE6-9 */;
border: solid 10px #50b463;
-moz-border-radius: 30px 30px 100px 100px;
-webkit-border-radius: 30px 30px 100px 100px;
border-radius: 30px 30px 100px 100px;
position: absolute;
margin: 200px 60px 60px 177px;
}  


/*****PLACEHOLDER-TEXT*****/

::-webkit-input-placeholder {
   color: #000;
}

:-moz-placeholder { /* Firefox 18- */
   color: #000;  
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #000;  
}

:-ms-input-placeholder {  
   color: #000;  
}
              
            
!

JS

              
                
              
            
!
999px

Console