Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <!-- Sidebar Menu -->
  <div class="ui vertical inverted sidebar menu">
    <a class="active item">Home</a>
    <a class="item">Work</a>
    <a class="item">Company</a>
    <a class="item">Careers</a>
    <a class="item">Login</a>
    <a class="item">Signup</a>
  </div>


  <!-- Page Contents -->
  <div class="Dashboard pusher">
    <div id="sidebar" class="Dashboard__sidebar ui vertical menu">
      <div class="item">
        <div class="header">Products</div>
        <div class="menu">
          <a class="item">Enterprise</a>
          <a class="item">Consumer</a>
        </div>
      </div>
      <div class="item">
        <div class="header">CMS Solutions</div>
        <div class="menu">
          <a class="item">Rails</a>
          <a class="item">Python</a>
          <a class="item">PHP</a>
        </div>
      </div>
      <div class="item">
        <div class="header">Hosting</div>
        <div class="menu">
          <a class="item">Shared</a>
          <a class="item">Dedicated</a>
        </div>
      </div>
      <div class="item">
        <div class="header">Support</div>
        <div class="menu">
          <a class="item">E-mail Support</a>
          <a class="item">FAQs</a>
        </div>
      </div>
    </div>

    <div class="ui fixed menu">
      <a class="active item">
        Home
      </a>
      <a class="item">
        Messages
      </a>
      <a class="item">
        Friends
      </a>
      <div class="right menu">
        <div class="item">
          <div class="ui icon input">
            <input type="text" placeholder="Search...">
            <i class="search link icon"></i>
          </div>
        </div>
        <a class="ui item">
          Logout
        </a>
        <button type="button" id="sidebarToggle" class="ui item button">Mobile Menu</button>
      </div>
    </div>

    <div class="Dashboard__content">
      <div class="ui inverted vertical masthead center aligned segment">

        <div class="ui text container very padded basic segment">
          <h1 class="ui inverted header">
            Welcome to Semantic Boilerplate
          </h1>
          <h2 class="ui inverted header">Do whatever you want when you want to.</h2>
          <div class="ui huge primary button">Get Started <i class="right arrow icon"></i></div>
        </div>

      </div>

      <div class="ui vertical stripe segment">
        <div class="ui middle aligned stackable grid container very padded segment">
          <div class="row">
            <div class="eight wide column">
              <h3 class="ui header">We Help Companies and Companions</h3>
              <p>Nunc condimentum malesuada ex, at faucibus mauris condimentum in. Duis pulvinar sem et metus elementum
                commodo. Proin ac lacus vitae odio dapibus sodales. Fusce porta id ipsum vel interdum.</p>
            </div>
            <div class="six wide right floated column">
              <img src="https://via.placeholder.com/350x150" class="ui large bordered rounded image">
            </div>
          </div>
        </div>
      </div>


      <div class="ui vertical stripe quote segment">
        <div class="ui equal width stackable internally grid inverted very padded segment light grey">
          <div class="center aligned row">
            <div class="column">
              <h4>Scalable on Devices.</h4>
              <h3>RESPONSIVE & RETINA</h3>
              <p>Employment respond committed meaningful fight against oppression social challenges rural legal aid
                governance. Meaningful work, implementation, process cooperation, campaign inspire.</p>
            </div>
            <div class="column">
              <h4>Smartly Coded & Maintained.</h4>
              <h3>POWERFUL PERFORMANCE</h3>
              <p>
                Medecins du Monde Jane Addams reduce child mortality challenges Ford Foundation. Diversification shifting
                landscape advocate pathway to a better life rights international. Assessment.
              </p>
            </div>
            <div class="column">
              <h4>Flexible & Customizable.</h4>
              <h3>TRULY MULTI-PURPOSE</h3>
              <p>
                Democracy inspire breakthroughs, Rosa Parks; inspiration raise awareness natural resources. Governance
                impact; transformative donation philanthropy, respect reproductive.
              </p>
            </div>
          </div>
        </div>
      </div>


      <div class="ui vertical stripe very padded segment">
        <div class="ui container basic very padded segment">
          <h2 class="ui header">
            <div class="content">
              EVEN MORE FEATURE RICH
              <div class="sub header">Philanthropy convener livelihoods, initiative end hunger gender rights local. John
                Lennon storytelling; advocate, altruism impact catalyst.</div>
            </div>
          </h2>
          <div class="ui middle aligned stackable three column grid">
            <div class="row">

              <div class="column icons right">
                <h3 class="ui header">
                  <i class="icon heart"></i>
                  <div class="content">
                    BOXED & WIDE LAYOUTS
                    <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                      visitors.</div>
                  </div>
                </h3>
                <h3 class="ui header">
                  <i class="icon heart"></i>
                  <div class="content">
                    BOXED & WIDE LAYOUTS
                    <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                      visitors.</div>
                  </div>
                </h3>
              </div>

              <div class="column text center">
                <img src="https://via.placeholder.com/240x450" />
              </div>

              <div class="column">
                <h3 class="ui header">
                  <i class="icon heart right"></i>
                  <div class="content">
                    BOXED & WIDE LAYOUTS
                    <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                      visitors.</div>
                  </div>
                </h3>
                <h3 class="ui header">
                  <i class="icon heart"></i>
                  <div class="content">
                    BOXED & WIDE LAYOUTS
                    <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                      visitors.</div>
                  </div>
                </h3>
              </div>

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

      <div class="ui vertical stripe segment">
        <div class="ui stackable two column grid container">
          <div class="row">
            <div class="column" style="background:url(https://via.placeholder.com/900x900);background-size: cover;min-height:300px;">
              
            </div>
            <div class="column">
              <div class="ui basic very padded segment">
                <h3 class="ui header centered">
                  <div class="content">
                    <div class="sub header">
                      Easily Understandable & Customizable.
                    </div>
                    WALKTHROUGH VIDEOS & DEMOS
                  </div>
                </h3>

                <img src="https://via.placeholder.com/500x150" class="ui image" />

                <p>Democracy inspire breakthroughs, Rosa Parks; inspiration raise awareness natural resources. Governance
                  impact; transformative donation philanthropy, respect reproductive.</p>

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



      <div class="ui vertical stripe segment">
        <div class="ui middle aligned stackable three column grid container very padded basic segment">
          <div class="row">

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>
          </div>

          <div class="row">

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

          </div>
          <div class="row">

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

            <div class="column">
              <h4 class="ui header">
                <i class="icon heart small"></i>
                <div class="content">
                  BOXED & WIDE LAYOUTS
                  <div class="sub header">Stretch your Website to the Full Width or make it boxed to surprise your
                    visitors.</div>
                </div>
              </h4>
            </div>

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

      <div class="ui inverted vertical light grey segment">
        <div class="ui container very padded basic segment">
          <h2 class="ui header centered">
            LATEST FROM THE BLOG
          </h2>
        </div>
      </div>
      <div class="ui vertical segment">
        <div class="ui four column stackable grid container padded basic segment">

          <div class="column">
            <div class="ui basic card">
              <a class="image" href="#">
                <img src="assets/img/1.jpg" />
              </a>
              <div class="content">
                <h3 class="header">Bloomberg smart cities; change-makers economic security</h3>
                <div class="meta">
                  <span class="date">
                    <i class="icon calendar"></i>
                    13th Jun 2014
                  </span>
                  <span class="comments">
                    <i class="icon comment"></i>
                    53
                  </span>
                </div>
                <p class="description">
                  Prevention effect, advocate dialogue rural development lifting people up community civil society.
                  Catalyst, grantees leverage.
                </p>
              </div>
            </div>
          </div>

          <div class="column">
            <div class="ui basic card">
              <a class="image" href="#">
                <img src="assets/img/2.jpg" />
              </a>
              <div class="content">
                <h3 class="header">Bloomberg smart cities; change-makers economic security</h3>
                <div class="meta">
                  <span class="date">
                    <i class="icon calendar"></i>
                    13th Jun 2014
                  </span>
                  <span class="comments">
                    <i class="icon comment"></i>
                    53
                  </span>
                </div>
                <p class="description">
                  Prevention effect, advocate dialogue rural development lifting people up community civil society.
                  Catalyst, grantees leverage.
                </p>
              </div>
            </div>
          </div>

          <div class="column">
            <div class="ui basic card">
              <a class="image" href="#">
                <img src="assets/img/3.jpg" />
              </a>
              <div class="content">
                <h3 class="header">Bloomberg smart cities; change-makers economic security</h3>
                <div class="meta">
                  <span class="date">
                    <i class="icon calendar"></i>
                    13th Jun 2014
                  </span>
                  <span class="comments">
                    <i class="icon comment"></i>
                    53
                  </span>
                </div>
                <p class="description">
                  Prevention effect, advocate dialogue rural development lifting people up community civil society.
                  Catalyst, grantees leverage.
                </p>
              </div>
            </div>
          </div>

          <div class="column">
            <div class="ui basic card">
              <a class="image" href="#">
                <img src="assets/img/4.jpg" />
              </a>
              <div class="content">
                <h3 class="header">Bloomberg smart cities; change-makers economic security</h3>
                <div class="meta">
                  <span class="date">
                    <i class="icon calendar"></i>
                    13th Jun 2014
                  </span>
                  <span class="comments">
                    <i class="icon comment"></i>
                    53
                  </span>
                </div>
                <p class="description">
                  Prevention effect, advocate dialogue rural development lifting people up community civil society.
                  Catalyst, grantees leverage.
                </p>
              </div>
            </div>
          </div>

        </div>
      </div>


      <div class="ui inverted vertical footer segment">
        <div class="ui container very padded basic segment">
          <div class="ui stackable inverted divided equal height stackable grid">
            <div class="three wide column">
              <h4 class="ui inverted header">About</h4>
              <div class="ui inverted link list">
                <a href="#" class="item">Sitemap</a>
                <a href="#" class="item">Contact Us</a>
                <a href="#" class="item">Religious Ceremonies</a>
                <a href="#" class="item">Gazebo Plans</a>
              </div>
            </div>
            <div class="three wide column">
              <h4 class="ui inverted header">Services</h4>
              <div class="ui inverted link list">
                <a href="#" class="item">Banana Pre-Order</a>
                <a href="#" class="item">DNA FAQ</a>
                <a href="#" class="item">How To Access</a>
                <a href="#" class="item">Favorite X-Men</a>
              </div>
            </div>
            <div class="seven wide column">
              <h4 class="ui inverted header">Footer Header</h4>
              <p class="ui inverted grey text">Extra space for a call to action inside the footer that could help re-engage users.</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
              
            
!

CSS

              
                
    .Dashboard__sidebar {
      width: 240px !important;
      height: 100%;
      max-height: 100%;
      position: absolute;
      top:48px;
      left: 0;
      margin: 0 !important;
      padding-top: 1em;
      -webkit-transform: translateX(-250px);
      transform: translateX(-250px);
      -webkit-transform-style: preserve-3d;
      transform-style: preserve-3d;
      will-change: transform;
      transition-duration: .2s;
      transition-timing-function: cubic-bezier(.4, 0, .2, 1);
      transition-property: transform;
      transition-property: transform, -webkit-transform;
      z-index: 5;
    }

    .Dashboard__sidebar.visible {
      -webkit-transform: translateX(0);
      transform: translateX(0);
    }

    .Dashboard__content {
      margin-top:48px;
      margin-left: 240px !important;
      min-height: calc(100vh);
      background-color: #EFEFEF;
    }

    .Dashboard__content > .content {
      padding: 1.5em;
    }

    #sidebarToggle {
      display: block;
    }

    .text.center {
      text-align: center;
    }

    .inverted.text {
      color:#FFF !important;
    }

    .inverted.grey.text {
      color:#AAA !important;
    }

    .Dashboard__content > .ui.vertical.segment {
      padding:0;
    }

    .ui.inverted.light.grey.segment {
      background-color: lightgray !important;
      color: #000 !important;
    }

    @media screen and (min-width: 1025px) {
      .Dashboard__sidebar {
        -webkit-transform: translateX(0);
        transform: translateX(0);
      }
      #sidebarToggle {
        display: none;
      }
    }
    @media screen and (max-width: 1024px) {
      .Dashboard__content {
          margin-left: 0 !important;
      }
    }

    @media only screen and (max-width: 700px) {
      .ui.fixed.menu {
        display: none !important;
      }

      .secondary.pointing.menu .item,
      .secondary.pointing.menu .menu {
        display: none;
      }

      .secondary.pointing.menu .toc.item {
        display: block;
      }

      .masthead.segment {
        min-height: 350px;
      }

      .masthead h1.ui.header {
        font-size: 2em;
        margin-top: 1.5em;
      }

      .masthead h2 {
        margin-top: 0.5em;
        font-size: 1.5em;
      }
    }
              
            
!

JS

              
                    const showSidebar = function () {
      if (document.getElementById("sidebar").classList.contains('visible')) {
        document.getElementById("sidebar").classList.remove('visible');
      } else {
        document.getElementById("sidebar").classList.add('visible');
      }
    }

    window.onload = function () {

      document.getElementById("sidebarToggle").onclick = showSidebar;
    }
              
            
!
999px

Console