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="container">
  <div class="popup">
    <div class="popup-content">
      <h2 class="popup-title">Awesome!</h2>
      <p class="popup-body">You just found my pastel gradient button.<br> Now, let's see what else it does. :P </p>
      <a href="#0" class="popup-button">Hover me</a>
              @import url('https://fonts.googleapis.com/css?family=Raleway');

// Colors
$blue: #32325d;
$gray: #F5F6FA;
$dark-gray: #6b7c93;
$white: #fff;
$border-rounded: 6px;

// Mobile first
*::after { 
  box-sizing: border-box;

html {
  background-color: $gray;
body {
  padding: 1rem 0.5rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: 'Raleway',Sans-serif;

// Flexbox container
.container {
  display: flex;
  -webkit-display: box;
  -moz-display: box;
  -ms-display: flexbox;
  -webkit-display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: center;
  padding: 6%;
  margin: 0;

// Popup UI
.popup {
  display: flex;
  align-content: center;
  justify-content: center;
  background-color: $white;
  border-radius: $border-rounded;
  padding: 3rem 2rem;
  box-shadow: 0 10px 40px -14px rgba(0,0,0,0.25);
  text-align: center;
// Popup Texts & button
  .popup-content {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;

  .popup-title {
    color: $blue;
    font-size: 1.8em;
    line-height: 1.5em;
    font-weight: 900;
    margin-top: 0;

  .popup-body {
    font-size: 1.1em;
    line-height: 1.6em;
    color: $dark-gray;
    font-weight: 500;
    margin-bottom: 2.1em;
  .popup-button {
    display: block;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 1em;
    text-transform: uppercase;
    color: $white;
    //Button shape
    border-radius: $border-rounded;
    margin: 10px;
    padding: 1em 3em;
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 6px rgba(50,50,93,.11), 0 1px 3px rgba(0,0,0,.08);
    background-image: linear-gradient(to right, #895cf2 0%, #ffabf4 50%, #895cf2 100%);
    transition: 0.5s;
    &:hover {
      background-position: right center;
Loading ..................