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

              
                
<p>
<h1>Header One</h1>
<h2>Header Two</h2>
<h3>Header Three</h3>
<h4>Header Four</h4>

<a class="small-round-button">Rounded Edges</a>
<a class="medium-round-button">Rounded Edges</a>
<a class="big-round-button">Rounded Edges</a> 
  </div>  
<div class="flat-container">
</div>
<div class="row">
<a class="small-button">Small Square Button</a>
<a class="medium-button">Medium Square Button</a>
<a class="big-button">Big Square Button</a> 
  </div>  
<div class="row">
<input class="flat-textbox" size="45" value="Flat Textbox"name="textfield" type="text">
<br>
<br><ul>
<li><a class="menu" href="#">Menu</a></li>
<li><a class="menu" href="#">Menu</a></li>
<li><a class="menu" href="#">Home</a></li>
<li><a class="menu" href="#">Home</a></li>
</ul>

              
            
!

CSS

              
                @import compass

/*flat.css*/

body
 background-color: #2c3e50

.row 
 margin: 5px 0
 padding: 5px

.flat-container
 position: absolute
 left: 500px
 top: 30px 
 max-width: 260px
 text-align: center
 margin: 0 auto
 padding: 0 40px
 padding: 0 1.5rem
 background-color: #34495e
 overflow: hidden
 margin: 5px auto
 width: 80%

/*Round buttons*/
.small-round-button 
 display: inline-block
 text-align: center
 border-radius: 6px
 font-family: "Lato", sans-serif
 cursor: pointer
 margin: 0 7px
 padding: 5px 8px
 font-size: 12px
 background: #4479BA
 -webkit-transition-duration: 0.2s
 -moz-transition-duration: 0.2s
 transition-duration: 0.2s

.small-round-button:hover, .small-round-button:focus 
 background: #e74c3c
 text-decoration: none

.medium-round-button 
 display: inline-block
 text-align: center
 border-radius: 6px
 font-family: "Lato", sans-serif
 cursor: pointer
 margin: 0 0px
 padding: 5px 8px
 font-size: 14px
 background: #4479BA
 -webkit-transition-duration: 0.2s
 -moz-transition-duration: 0.2s
 transition-duration: 0.2s
.medium-round-button:hover, .medium-round-button:focus 
 background: #e74c3c
 text-decoration: none

.big-round-button
 text-align: center
 padding: 5px 8px
 font-size: 19px
 display: inline-block
 text-align: center
 border-radius: 6px
 font-family: "Lato", sans-serif
 cursor: pointer
 background: #4479BA
 -webkit-transition-duration: 0.2s
 -moz-transition-duration: 0.2s
 transition-duration: 0.2s
.big-round-button:hover, .big-round-button:focus 
 background: #e74c3c
 text-decoration: none
  

 /*Regular buttons*/
.small-button 
 display: inline-block
 text-align: center
 font-family: "Lato", sans-serif
 cursor: pointer
 margin: 0 7px
 padding: 5px 8px
 font-size: 12px
 background: #4479BA
 -webkit-transition-duration: 0.2s
 -moz-transition-duration: 0.2s
 transition-duration: 0.2s

.small-button:hover, .small-button:focus 
 background: #e74c3c
 text-decoration: none

.medium-button 
 display: inline-block
 text-align: center

 font-family: "Lato", sans-serif
 cursor: pointer
 margin: 0 0px
 padding: 5px 8px
 font-size: 14px
 background: #4479BA
 -webkit-transition-duration: 0.2s
 -moz-transition-duration: 0.2s
 transition-duration: 0.2s
.medium-button:hover, .medium-button:focus 
 background: #e74c3c
 text-decoration: none

.big-button
 text-align: center
 padding: 5px 8px
 font-size: 19px
 display: inline-block
 text-align: center
 font-family: "Lato", sans-serif
 cursor: pointer
 background: #4479BA
 -webkit-transition-duration: 0.2s
 -moz-transition-duration: 0.2s
 transition-duration: 0.2s
.big-button:hover, .big-button:focus 
 background: #e74c3c
 text-decoration: none

.flat-textbox
 border: 0px solid #dbdbdb
 font-family: "Lato", sans-serif
 padding: 0.4vw
 -webkit-border-radius: 1px
 -moz-border-radius: 1px
 -webkit-transition-duration: 0.3s
 -moz-transition-duration: 0.3s
 transition-duration: 0.3s
 color: #bdc3c7

.flat-textbox:hover, .flat-textbox:focus 
 color: black
 background-color: #27ae60

h1, h2, h3, h4
 font-size: 8.0dw
 color: #f1c40f
 font-family: "Lato", sans-serif
 -webkit-transition-duration: 0.3s
 -moz-transition-duration: 0.3s
 transition-duration: 0.3s

h1:hover
 color: #e67e22
h2:hover
 color: #e67e22
h3:hover
 color: #e67e22
h4:hover
 color: #e67e22

ul
 list-style-type: none
 margin: 0
 padding: 0
 overflow: hidden
 display: block
 width: 60px

li
 background-color: #4479BA
 -webkit-transition-duration: 0.3s
 -moz-transition-duration: 0.3s
 transition-duration: 0.3s
 text-align: center
 font-family: "Lato", sans-serif

li:hover
 background-color: #e74c3c

.menu
 white-space: pre-wrap /* css-3 */
 white-space: -moz-pre-wrap /* Mozilla, since 1999 */
 white-space: -pre-wrap /* Opera 4-6 */
 white-space: -o-pre-wrap /* Opera 7 */
 word-wrap: break-word
 color: black
 text-decoration: none


              
            
!

JS

              
                
              
            
!
999px

Console