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

              
                <body>

  <h2>Keywords (no child UL)</h2>

  <ul class="keyword-index">
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Acoustic</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Ambient</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Audio Logos</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">All Genre 1</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Acoustic</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Ambient</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Audio Logos</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">All Genre 1</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Acoustic</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Ambient</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">Audio Logos</a></li>
    <li class="keyword-index__item"><a href="#" class="keyword-index__link" title="TITLE TEXT">All Genre 1</a></li>
  </ul>

  <h2>Keywords (has child)</h2>

  <ul class="keyword-index">
    <li class="keyword-index__item keyword-index__item--has-child">Genre 1
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Acoustic</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Ambient</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Audio Logos</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 1</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 2
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Blues</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Chill Out</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Christmas</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Classical</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Corporate</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 2</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 3
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Country</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Dance / Techno</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Christmas</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Classical</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Corporate</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 4
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Country</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Dance / Techno</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Dubstep</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Easy Listening</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Electro Pop</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 4</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 5
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Electronic</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Folk</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Games</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Dubstep</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 5</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 6
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Easy Listening</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Electro Pop</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Electronic</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Folk</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Games</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 6</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 7
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 7</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 8
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Hip-Hop</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Holiday</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 8</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 9
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Acoustic</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Ambient</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Audio Logos</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 9</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 10
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Blues</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Chill Out</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Christmas</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Classical</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Corporate</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 10</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 11
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Country</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Dance / Techno</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Christmas</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Classical</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Corporate</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 11</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 12
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Country</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Dance / Techno</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Dubstep</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Easy Listening</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Electro Pop</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 12</a></li>
      </ul>
    </li>
    <li class="keyword-index__item keyword-index__item--has-child">Genre 13
      <ul class="keyword-index__sub-list">
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Electronic</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">Folk</a></li>
        <li class="keyword-index__sub-item"><a href="#" class="keyword-index__sub-link" title="TITLE TEXT">All Genre 13</a></li>
      </ul>
    </li>
  </ul>

</body>
              
            
!

CSS

              
                
body {
  margin: 0 auto;
  max-width: 1000px;
}

h2 {
  margin-bottom: 30px;
}

ul {
    list-style: none;
    margin-bottom: 30px;
}

.keyword-index {
	  column-count: 5;
    column-gap: 20px;
    font-size: 16px;
    margin: 0 0 30px;
    padding: 0;
}

.keyword-index__item {
	color: #000;
}

.keyword-index__item--has-child {
	font-size: 20px;
	margin-bottom: 30px;
}

.keyword-index__link {
	font-size: 16px;
}

.keyword-index__sub-list {
	font-size: 16px;
	padding: 5px 0 0;
}
              
            
!

JS

              
                
              
            
!
999px

Console