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.

              <div class="container">
  <div class="title">Colorful Gradient Buttons</div>
  <a class="button red" href>Sunset</a>
  <a class="button blue" href>Deep Sea</a>
  <a class="button green" href>Pasture</a>

<div class="subtitle">Made with love by NathanAB</div>
              @import url(https://fonts.googleapis.com/css?family=Open+Sans:400,700);

@mixin gradient($from, $to) {
    background: -moz-linear-gradient(45deg, $from, $to);
    background: -webkit-linear-gradient(45deg, $from, $to);
    background: linear-gradient(45deg, $from, $to);

html {
  background-color: #EAEAEA;
  font-family: 'Open Sans', sans-serif;
  text-align: center;
  padding: 50px;

.container {
  padding: 50px;
  background-color: #F0F0F0;
  display: inline-block;
  border-radius: 5px;
  box-shadow: 0 0 30px #CACACA;

.title {
  font-size: 36px;
  color: #333;

.subtitle {
  font-size: 12px;
  color: #333;
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  margin: auto;

a.button {
  display: inline-block;
  font-size: 24px;
  border-radius: 3px;
  color: white;
  text-decoration: none;
  box-shadow: 0px 2px 10px #999;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 20px;
  padding: 15px 25px;
  &.red {
    @include gradient(#DBA551, #85202c);

   &.blue {
    @include gradient(#7399ae, #662452);

  &.green {
    @include gradient(#B7CF4F, #298520);
  background-size: 250% 100% !important;  
  background-position: 100% 0% !important; 
  &:hover {
    background-position: 0% !important;
    box-shadow: 0 0px 12px #BBB;
    transition: all 0.3s ease;
    transform: translateY(-1px);
  &:active {
    transform: translateY(0);
    background-position: 50% !important;
Loading ..................