css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              
<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>

            
          
!
            
              @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


            
          
!
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