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

              
                <main>
  <div class=""><a onclick="showModalCS()">Full List Items</a>


<div class="modal modalCS" id="modalCS">
  <div class="modalCS__content">
      <span class="modal__close" onclick="closeModalCS()">×</span>
      <div class="modalCS__title">Item list</div>

      <div class="modalCS__wrap">
          <ul class="modalCS__list" id="popupScroll">
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>
            <li class="item">
              <a href="" itemprop="url">Item</a>
            </li>

        </ul>
      </div>
  </div>
</div>

</main>
  
  
<script>
  function showModalCS() {
	var modal = document.getElementById("modalCS");
	modal.style.display = "block";
  }
  function closeModalCS() {
    var modal = document.getElementById("modalCS");
    modal.style.display = "none";
  }
</script>
              
            
!

CSS

              
                
.modalCS
  &__title 
    width: 100%
    text-align: center
    margin-bottom: 20px
    font-size: 32px
    font-weight: 500

  &__wrap 
    width: 100%
    height: calc(100% - 60px)
    overflow: auto

    &::-webkit-scrollbar 
      width: 8px

    &::-webkit-scrollbar-track
      background: #F8F8F8 

    &::-webkit-scrollbar-thumb
      background: #bfbfbf 
      border-radius: 5px

  &__content 
    // position: absolute
    position: fixed
    top: 50px 
    left: calc(50% - 480px)
    z-index: 100
    width: 960px
    height: 350px
    padding: 35px 35px 35px 35px
    background-color: #fff
    border-radius: 10px
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px


  &__list 
    position: relative
    z-index: 100
    width: 100%
    max-width: 960px
    height: 760px
    //padding-left: 25px
    list-style-type: decimal
    overflow: auto
    column-count: 3

    .item 
      display: list-item
      position: relative
      margin-right: 20px
      width: 33.3%

      &::marker 
        font-size: 14px
        color: blue

      a 
        display: block
        width: 100%
        width: 250px
        margin-bottom: 5px
        font-size: 14px
        color: blue
        text-decoration: none

        &:hover 
          text-decoration: underline

      @media (max-width: 1024px)
        width: calc(50% - 20px)

              
            
!

JS

              
                
              
            
!
999px

Console