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.

Quick-add: + add another resource

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.

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.

            
              <html>
<head>
    <title>Buttons</title> 
</head>
<body>
  <h1>Large</h1>
<button class="btn red lg" >Click Me</button>
<button class="btn green lg">Clicl Me</button>
<button class="btn gray lg">Click Me</button>
<button class="btn blue lg">Click Me</button>
<button class="btn orange lg">Click Me</button>
<button class="btn black lg">Click Me</button>
  
   <h1>Medium</h1>
<button class="btn red md" >Click Me</button>
<button class="btn green md">Click Me</button>
<button class="btn gray md">Click Me</button>
<button class="btn blue md">Click Me</button>
<button class="btn orange md">Click Me</button>
<button class="btn black md">Click Me</button>
  
  <h1>Small</h1>
<button class="btn red sm" >Click Me</button>
<button class="btn green sm">Click Me</button>
<button class="btn gray sm">Click Me</button>
<button class="btn blue sm">Click Me</button>
<button class="btn orange sm">Click Me</button>
<button class="btn black sm">Click Me</button>
  
 
</body>
</html>
            
          
!
            
              * {
  margin: 10px;
} 
body {
  text-align : center;
  font-family: verdana;
}
.btn {
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background-color: #f7f7f7;
    transition: 0.2s;
    outline:0;
}
.btn.lg {
  padding: 15px;
  font-size: 20px;
}
.btn.md {
  padding: 10px;
  font-size: 15px;
}
.btn.sm {
  padding: 5px;
  font-size: 10px;
}

.btn:hover{
    box-shadow: 0px 0px 5px gray;
    transform: translate(2px, 5px);
}

.red {
    box-shadow: 2px 5px 0px #f75d63;
    color: #f75d63;
    border: 0.8px solid red;

}
 .red:hover {
    box-shadow: 0px 0px 3px #f75d63;
    border: 0.8px solid #f75d63;
} 
.green {
    box-shadow: 2px 5px 0px #41a841;
    color: #41a841;
    border: 0.8px solid #41a841;
}
.green:hover {
    box-shadow: 0px 0px 3px #41a841;
  border: 0.8px solid #41a841;
}

.gray {
    box-shadow: 2px 5px 0px gray;
    color: gray;
    border: 0.8px solid gray;
}
.gray:hover {
    box-shadow: 0px 0px 3px gray;
    border: 0.8px solid gray;
}

.blue {
    box-shadow: 2px 5px 0px #559cd6;
    color: #559cd6;
    border: 0.8px solid #559cd6;
}
.blue:hover {
    box-shadow: 0px 0px 3px #559cd6;
    border: 0.8px solid #559cd6;
}
.orange {
    box-shadow: 2px 5px 0px #EC971F;
    color: orange;
    border: 0.8px solid #EC971F;
}
.orange:hover {
    box-shadow: 0px 0px 3px #EC971F;
    border: 0.8px solid #EC971F;
} 
.black {
    box-shadow: 2px 5px 0px black;
    color: black;
    border: 0.8px solid black;

}
 .black:hover {
    box-shadow: 0px 0px 3px black;
    border: 0.8px solid black;
} 
            
          
!
999px
Loading ..................

Console