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.

              <p>Haven't finish this yet but, boy, what fun it's been!</p>
<h1>New Game</h1>
<h2>Select difficulty&hellip;</h2>
  <input type="radio" id="control_01" name="select" value="1" checked>
  <label for="control_01">
    <p>Awww, poor baby. Too afraid of the scary game sprites? I laugh at you.</p>
  <input type="radio" id="control_02" name="select" value="2">
  <label for="control_02">
    <p>You're not a gaming God by any stretch of the imagination.</p>
  <input type="radio" id="control_03" name="select" value="3">
  <label for="control_03">
    <p>Now we're talking. It's gettin' a bit hairy out there in game land.</p>
  <input type="radio" id="control_04" name="select" value="4" disabled>
  <label for="control_04">
    <p>Prepare for glory! This is going to be one hell of a no-holds-barred ride.</p>
  <input type="radio" id="control_05" name="select" value="5">
  <label for="control_05">
    <p>You will not live. Strap in and write a heart-felt letter to your loved ones.</p>
              // The code is a bit of a mess at the moment! Sorry about that.

body {
  padding: 1rem;
  color: hsla(215, 5%, 50%, 1);
h1 {
  color: hsla(215, 5%, 10%, 1);
  margin-bottom: 2rem;
section {
  display: flex;
  flex-flow: row wrap;
section > div {
  flex: 1;
  padding: 0.5rem;
input[type="radio"] {
  display: none;
  &:not(:disabled) ~ label {
    cursor: pointer;
  &:disabled ~ label {
    color: hsla(150, 5%, 75%, 1);
    border-color: hsla(150, 5%, 75%, 1);
    box-shadow: none;
    cursor: not-allowed;
label {
  height: 100%;
  display: block;
  background: white;
  border: 2px solid hsla(150, 75%, 50%, 1);
  border-radius: 20px;
  padding: 1rem;
  margin-bottom: 1rem;
  //margin: 1rem;
  text-align: center;
  box-shadow: 0px 3px 10px -2px hsla(150, 5%, 65%, 0.5);
  position: relative;
input[type="radio"]:checked + label {
  background: hsla(150, 75%, 50%, 1);
  color: hsla(215, 0%, 100%, 1);
  box-shadow: 0px 0px 20px hsla(150, 100%, 50%, 0.75);
  &::after {
    color: hsla(215, 5%, 25%, 1);
    font-family: FontAwesome;
    border: 2px solid hsla(150, 75%, 45%, 1);
    content: "\f00c";
    font-size: 24px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0px 2px 5px -2px hsla(0, 0%, 0%, 0.25);
input[type="radio"]#control_05:checked + label {
  background: red;
  border-color: red;
p {
  font-weight: 900;

@media only screen and (max-width: 700px) {
  section {
    flex-direction: column;


Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.


Loading ..................