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 CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

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.

              <div class="top blue-top"></div>
<div class="content">
  <div class="wrap">
  <a href="#" class="button red">Google</a>
  <a href="#" class="button green">Material</a>
  <a href="#" class="button blue">Design</a>
  <a href="#" class="button purple">Button</a>
<a href="" class="circle-button">+</a>

              html {
  overlow: hidden;
  font-family: sans-serif;
.top {
  width: 100%;
  margin: 0;
  display: block;
  height: 300px;
.content {
  background: white;
  box-shadow: 0px 0px 15px #555;
  width: 70%;
  display: block;
  padding: 50px 10px;
  margin: -200px auto 20px auto;
.circle-button {
  background-color: #ffbb33;
  width: 70px;
  height: 70px;
  position: absolute;
  right: 3%;
  top: 275px;
  border-radius: 50%;
  box-shadow: 0px 0px 7px #555;
  color: #fff;
  font-size: 42px;
  line-height: 65px;
  text-align: center;
  transition: 300ms ease;
.wrap {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
a {
  text-decoration: none;

.button {
  display: inline-block;
  padding: 20px 40px;
  color: white;
  transition: 300ms ease-in-out;
  box-shadow: 0px 4px 20px #ccc;
  font-size: 22px;
  margin: 50px 2.6%;
  .button:hover {
    transform: translateY(-3px);
    box-shadow: 0px 2px 20px #777;

.red {
  background: #ff4444;
  border-bottom: 3px solid #cc0000;
.yellow {
  background-color: #ffbb33;
  border-bottom: 3px solid #ff8800;
.green {
  background-color: #99cc00;
  border-bottom: 3px solid #669900;
.purple {
  background-color: #aa66cc;
  border-bottom: 3px solid #9933cc;
.blue {
  background-color: #33b5e5;
  border-bottom: 3px solid #0099cc;
.blue-top {
  background-color: #33b5e5;

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................