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="menu">
    <label for="list1">ボタン1</label>
    <input type="checkbox" id="list1" class="on-off" />
    <ul id="submenu">
        <li><a href="">リンク1</a></li>
        <li><a href="">リンク2</a></li>
    <label for="list2">ボタン2</label>
    <input type="checkbox" id="list2" class="on-off" />
    <ul id="submenu">
        <li><a href="">リンク3</a></li>
        <li><a href="">リンク4</a></li>
  font-size: 16px;
  margin:50px 0 0 70px;
  font-family: "MS ゴシック",sans-serif;
label {
    background: pink;
    color: #fff;
    padding: 10px;
    display: block;
    margin: 0;
    border: 1px solid #fff;

    display: none;

.menu #submenu {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    -ms-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
    margin: 0;
    padding: 0;
    list-style: none;

.menu li a{
    padding: 5px;
    font-family: "MS ゴシック",sans-serif;
input[type="checkbox"].on-off + #submenu{
    height: 0;
    overflow: hidden;

input[type="checkbox"].on-off:checked + #submenu{
input[type="checkbox"].on-off:checked + #submenu li{
    border-bottom: 1px dashed #333333;
Loading ..................