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="notepad" contenteditable>
Hi friend,<br>
I created an editable notepad with a single element of HTML
and just a pinch of CSS magic ✨<br>
I hope you like it, it was a lot of fun to make.<br>
Best wishes,<br>
  P.S. Feel free to edit this message 😁
              @import url('https://fonts.googleapis.com/css?family=Kaushan+Script');

html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  perspective: 1000;
  background: linear-gradient(to bottom right, dodgerblue 50%, darken(dodgerblue, 5%) 50%);

.notepad {
  margin: auto;
  overflow: auto;
  height: 80vmin;
  width: 60vmin;
  border-radius: 1.5em;
  padding: 0 2.5em;
  font-size: 1.125em;
  line-height: 2.25em;
  transform: skew(20deg) rotateY(10deg) rotateZ(-10deg) scale(0.9);
  font-family: 'Kaushan Script', cursive;
    linear-gradient(to bottom right, rgba(black, 0), rgba(black, 0.15)),
    linear-gradient(to right, rgba(deeppink, 0) 1.875em, deeppink 1.875em, rgba(deeppink, 0) 2em) bottom left,
    linear-gradient(to bottom, rgba(cyan, 0) 1.5em, cyan 1.5em, rgba(cyan, 0) 1.625em) bottom left,
  background-size: auto, auto, 2em;
    -0.125em 0.125em #d4d4d4,
    -0.25em 0.25em #ddd,
    -0.375em 0.375em #d4d4d4,
    -0.5em 0.5em #ddd,
    -0.625em 0.625em #d4d4d4,
    -0.75em 0.75em #ddd,
    -0.875em 0.875em #d4d4d4
  &:focus {
    outline: none;
Loading ..................