Pen Settings

HTML

CSS

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. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

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

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <!-- Everything here goes inside of your <body></body> tags! -->
<div class="container">
  <div class="post-it">
    <p>hello! this is a little post-it-note!</p>
    <p>you can write whatever you want here!</p>
  </div>
  <div class="white-box">
    <div class="title">Kawaii Notebook</div>
    <div class="content">
      <p>Here's a box with some more space, maybe for a title? Or blinkies? I think blinkies :) Lalalalala.</p>
    </div>
  </div>
  <div class="notebook">
    <div class="wrapper">
      <div class="page-title">Welcome!</div>
      <p>This layout is based on <a href="https://www.createblog.com/website-templates/36207-kawaii-collage/preview/URL" target="_blank">'kawaii collage' by sugarpurr</a>. I removed the background and I scaled the image up a bit with an AI tool.</p>
      <p>Unfortunately, this layout is not responsive and does not look nice on phones :(</p>
      <p>But it's still super cool!</p>
      <p><strong>bold</strong> <em>italic</em> <u>underline</u></p>
      <p class="removeThis">You can find the code to this layout <a href="https://codepen.io/sadness97/pen/poWRGmq" target="_blank">here</a>.</p>
      <p>Enjoy some catsum ipsum to demonstrate the scrollbar :3</p>

      <p>Catch mouse and gave it as a present kitty run to human with blood on mouth from frenzied attack on poor innocent mouse, don't i look cute? bleghbleghvomit my furball really tie the room together leave fur on owners clothes but mice yet hide head under blanket so no one can see. Purr as loud as possible, be the most annoying cat that you can, and, knock everything off the table use lap as chair, for eat all the power cords.</p>
      <p>Sit on the laptop scratch so owner bleeds for snuggles up to shoulders or knees and purrs you to sleep if human is on laptop sit on the keyboard, yet lick left leg for ninety minutes, still dirty or in the middle of the night i crawl onto your chest and purr gently to help you sleep. Love to play with owner's hair tie hide from vacuum cleaner. Cat dog hate mouse eat string barf pillow no baths hate everything.
      <p>Meow meow attack the dog then pretend like nothing happened chase little red dot someday it will be mine! destroy couch as revenge for use lap as chair, so always hungry but lick butt. Be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day mrow yet catching very fast laser pointer. Carrying out surveillance on the neighbour's dog. Sleeps on my head waffles, so pet me pet me don't pet me so stand with legs in litter box, but poop outside check cat door for ambush 10 times before coming in for hack up furballs, curl into a furry donut. Touch water with paw then recoil in horror. Cats are the world.</p>
      </p>
    </div>
  </div>
  <div class="yellow-note">
    <div class="wrapper">
      <div class="subtitle">Navigation</div>
      <ul class="pixelbullets">
        <li><a href="#">link</a></li>
        <li><a href="#">link</a></li>
        <li><a href="#">link</a></li>
        <li><a href="#">link</a></li>
        <li><a href="#">link</a></li>
        <li><a href="#">link</a></li>
      </ul>
      <div class="subtitle">Section</div>
      <p>You can put whatever you like here! Buttons, blinkies, text, images, anything!</p>

      <div class="subtitle">Section</div>
      <p>Another section!? How generous!</p>

      <div class="subtitle">More Catsum</div>
      <p>Meow meow attack the dog then pretend like nothing happened chase little red dot someday it will be mine! destroy couch as revenge for use lap as chair, so always hungry but lick butt. Be a nyan cat, feel great about it, be annoying 24/7 poop rainbows in litter box all day mrow yet catching very fast laser pointer.</p>
      <p>Carrying out surveillance on the neighbour's dog. Sleeps on my head waffles, so pet me pet me don't pet me so stand with legs in litter box, but poop outside check cat door for ambush 10 times before coming in for hack up furballs, curl into a furry donut. Touch water with paw then recoil in horror. Cats are the world.</p>
    </div>
  </div>
</div>
<div class="footer">This layout was lovingly re-crafted by <a href="https://sadgrl.online/" target="_blank">sadgrl.online</a></div>
</div>
              
            
!

CSS

              
                
/* You can either copy the below and paste it between style tags on your HTML page, OR you can copy this to a file and name it .css and link it from your HTML page. */

:root {
  --accent-light: #fb90b6;
  --accent-dark: #c9507a;
  --accent-muted: #afafaf;
}

html,
body {
  margin: 0;
  font-family: "Verdana";
  font-size: 10px;
  background-color: pink;
  background-image: url("https://sadgrl.online/images/bgs/tile/heartpinkpas.gif");
}
strong {
  color: var(--accent-dark);
}
em {
  color: var(--accent-light);
}
u {
  color: var(--accent-dark);
}
a {
  color: var(--accent-dark);
  font-weight: bold;
  text-decoration: none;
}

.wrapper {
  padding: 20px;
}

.container {
  position: relative;
  content: "";
  background-image: url("https://sadgrl.online/images/lyts/not-mine/notebook-collage.png");
  background-repeat: no-repeat;
  height: 100%;
  max-width: 900px;
  height: 770px;
  margin: 0 auto;
}
.post-it,
.white-box,
.notebook,
.yellow-note {
  position: absolute;
}
.post-it {
  top: 20px;
  left: 40px;
  width: 130px;
}
.white-box {
  top: 20px;
  left: 180px;
  width: 500px;
  height: 100px;
  overflow: hidden;
}
.notebook {
  top: 172px;
  left: 145px;
}
.notebook > .wrapper {
  overflow: auto;
  height: 450px;
  width: 380px;
  padding-right: 84px;
  scrollbar-width: thin; /* "auto" or "thin" */
  scrollbar-color: #000 #c4c4c4; /* scroll thumb and track */
}
.notebook > .wrapper p {
  line-height: 16.2px;
  margin-bottom: 16.5px;
}
.yellow-note {
  left: 640px;
  top: 160px;
  width: 180px;
  height: 550px;
  overflow: auto;
  scrollbar-width: thin; /* "auto" or "thin" */
  scrollbar-color: #e8d866 #d6ca71; /* scroll thumb and track */
}
.title {
  font-size: 35px;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 3px dotted var(--accent-muted);
  color: var(--accent-dark);
}
.content {
}
.subtitle {
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
  border-bottom: 3px dotted var(--accent-muted);
  margin-bottom: 10px;
  color: var(--accent-dark);
}
ul.pixelbullets {
  list-style-image: url("https://sadgrl.online/images/lyts/not-mine/hearth_rosa.gif");
  padding-left: 25px;
}
.page-title {
  font-size: 25px;
  padding-bottom: 4px;
  color: var(--accent-dark);
  font-weight: bold;
}
.footer {
  text-align:center;
}

.yellow-note::-webkit-scrollbar {
  width: 12px; /* width of the entire scrollbar */
}

.yellow-note::-webkit-scrollbar-track {
  background: #e8d866; /* color of the tracking area */
}

.yellow-note::-webkit-scrollbar-thumb {
  background-color: #d6ca71; /* color of the scroll thumb */
}
.notebook > .wrapper::-webkit-scrollbar {
  width: 12px; /* width of the entire scrollbar */
}

.notebook > .wrapper::-webkit-scrollbar-track {
  background: #c4c4c4;; /* color of the tracking area */
}

.notebook > .wrapper::-webkit-scrollbar-thumb {
  background-color:  #000; /* color of the scroll thumb */
}
.removeThis {
  background-color:yellow;
}
              
            
!

JS

              
                
              
            
!
999px

Console