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.

      h3 Google OnHub Shell
      .btn Total Price: $37.98
    h1 Enter Payment Details
        label(for='number') Card Number
        input#number(type='num' maxlength='4')
        input(type='num' maxlength='4')
        input(type='num' maxlength='4')
        input(type='num' maxlength='4')
        label(for='name') Cardholder Name
        label(for='exp') Expiration
          option ...
          option Jan
          option Feb
          option Mar
          option Apr
          option May
          option Jun
          option Jul
          option Aug
          option Sep
          option Oct
          option Nov
          option Dec
          option ...
          option 2016
          option 2017
          option 2018
          option 2019
          option 2020
          option 2021
          option 2022
          option 2023
          option 2024
          option 2025
        label(for='ccv') CCV
        input#ccv(type='num' maxlength='3')
      button(type='button') Confirm And Pay

              *, :before,:after {
  box-sizing: border-box;
  margin: 0;

html {
  background: url('https://cbwconline.com/IMG/Codepen/Dark-Grey-Repeating-Background.png');

body {
  background: radial-gradient(ellipse at center, rgba(#000, .02) 0%, rgba(#000, .6) 100%);
  height: 100vh;
  overflow: hidden;
  color: #FFF;
  font-family: Roboto;

.modal {
  height: 400px;
  width: 650px;
  margin: auto;
  box-shadow: 0 15px 35px rgba(#000, .5);
  position: absolute;
  top: 0; bottom: 0;
  left: 0; right: 0;
  font-size: 0;

.side {
  background: linear-gradient(-45deg, #001F60, #009DE0);
  height: 100%;
  width: 100%;
  position: relative;
  .skew {
    background: #F6F6F6;
    height: 110%;
    width: 45%;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(#000, .25);
    position: absolute;
    top: -5%;
    z-index: 5;
    transform: skew(8deg);
    * {
      transform: skew(-8deg);
    h3 {
      color: #474747;
      font:  25px Roboto;
      text-align: center;
    img {
      width: 100%;
      margin: 25px 0;
    .btn {
      background: #474747;
      width: 180px;
      margin: 10px auto;
      padding: 10px 18px;
      font-size: 16px;
      text-align: center;
      border-radius: 3px;
      box-shadow: 0px 3px 10px rgba(#000, .25);
      cursor: default;

.header {
  width: 60%;
  position: absolute;
  top: 0;
  right: 0;
  h1 {
    background: linear-gradient(-45deg, #2ed6bc, #01BCE6);
    padding: 10px 25px;
    font: 25px Roboto;

.form {
  width: 350px;
  height: 100%;
  position: absolute;
  top: 56px;
  right: 0;

input, select, fieldset, button {
  border: none;
  outline: none;
  font: 16px Roboto;

fieldset {
  display: block;

label {
  display: block;
  color: #01BCE6;
  font: 500 13px Roboto;

input, select {
  background: rgba(#FFF, .18);
  padding: 8px 12px;
  margin: 5px 5px 5px 0;
  border-radius: 3px;
  color: #FFF;
  &:nth-last-of-type(1) {
    margin-right: 0;

option {
  background: #474747;

.number input {
  width: calc(25% - 7px);

.name input {
  width: 100%;

.exp, .ccv {
  display: inline-block;

.exp {
  width: 60%;
  select {
    width: calc(50% - 5px);

.ccv {
  width: 40%;
  input {
    width: 100%;

button {
  display: block;
  background: linear-gradient(-45deg, #2ed6bc, #01BCE6);
  width: 200px;
  color: white;
  padding: 10px 18px;
  margin: 40px auto;
  font-size: 18px;
  border-radius: 22px;
  box-shadow: 0 5px 10px rgba(#000, .2);
  cursor: pointer;
              //Daily UI #001 here: https://codepen.io/koenigsegg1/pen/wGoRRR
🕑 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.