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

              
                
<div class="navbar">
  <div class="navbar-inner">
    <ul class="nav nav-mega">
      <li class="dropdown">
      	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
      		Gadgets <b class="caret"></b>
      	</a>
        <ul class="dropdown-menu mega-menu">
          <li>
            <div class="row-fluid">
              <ul class="media-list span4">
                <li class="media">
                	<a href="#" class="pull-left">
                		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                	</a>
                  <div class="media-body">
                    <h5 class="media-heading"><a href="#">Shiny Gadgets</a></h5>
                    <ul class="unstyled">
                      <li><a href="#">Subcategory One</a></li>
                      <li><a href="#">Subcategory Two</a></li>
                      <li><a href="#">Subcategory Three</a></li>
                      <li><a href="#">Subcategory Four</a></li>
                      <li><a href="#">Subcategory Five</a></li>
                    </ul>
                  </div>
                </li>
              </ul>
              <ul class="media-list span4">
                <li class="media">
                	<a href="#" class="pull-left">
                		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                	</a>
                  <div class="media-body">
                    <h5 class="media-heading"><a href="#">Shiny Gadgets</a></h5>
                    <ul class="unstyled">
                      <li><a href="#">Subcategory One</a></li>
                      <li><a href="#">Subcategory Two</a></li>
                      <li><a href="#">Subcategory Three</a></li>
                      <li><a href="#">Subcategory Four</a></li>
                      <li><a href="#">Subcategory Five</a></li>
                    </ul>
                  </div>
                </li>
              </ul>
              <ul class="media-list span4">
                <li class="media">
                	<a href="#" class="pull-left">
                		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                	</a>
                  <div class="media-body">
                    <h5 class="media-heading"><a href="#">Shiny Gadgets</a></h5>
                    <ul class="unstyled">
                      <li><a href="#">Subcategory One</a></li>
                      <li><a href="#">Subcategory Two</a></li>
                      <li><a href="#">Subcategory Three</a></li>
                      <li><a href="#">Subcategory Four</a></li>
                      <li><a href="#">Subcategory Five</a></li>
                    </ul>
                  </div>
                </li>
              </ul>
            </div>
            <hr>
            <div class="row-fluid">
              <ul class="media-list span4">
                <li class="media">
                	<a href="#" class="pull-left">
                		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                	</a>
                  <div class="media-body">
                    <h5 class="media-heading"><a href="#">Shiny Gadgets</a></h5>
                    <ul class="unstyled">
                      <li><a href="#">Subcategory One</a></li>
                      <li><a href="#">Subcategory Two</a></li>
                      <li><a href="#">Subcategory Three</a></li>
                      <li><a href="#">Subcategory Four</a></li>
                      <li><a href="#">Subcategory Five</a></li>
                    </ul>
                  </div>
                </li>
              </ul>
              <ul class="media-list span4">
                <li class="media">
                	<a href="#" class="pull-left">
                		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                	</a>
                  <div class="media-body">
                    <h5 class="media-heading"><a href="#">Shiny Gadgets</a></h5>
                    <ul class="unstyled">
                      <li><a href="#">Subcategory One</a></li>
                      <li><a href="#">Subcategory Two</a></li>
                      <li><a href="#">Subcategory Three</a></li>
                      <li><a href="#">Subcategory Four</a></li>
                      <li><a href="#">Subcategory Five</a></li>
                    </ul>
                  </div>
                </li>
              </ul>
              <ul class="media-list span4">
                <li class="media">
                	<a href="#" class="pull-left">
                		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                	</a>
                  <div class="media-body">
                    <h5 class="media-heading"><a href="#">Shiny Gadgets</a></h5>
                    <ul class="unstyled">
                      <li><a href="#">Subcategory One</a></li>
                      <li><a href="#">Subcategory Two</a></li>
                      <li><a href="#">Subcategory Three</a></li>
                      <li><a href="#">Subcategory Four</a></li>
                      <li><a href="#">Subcategory Five</a></li>
                    </ul>
                  </div>
                </li>
              </ul>
            </div>
          </li>
        </ul>
      </li>
      <li class="dropdown">
      	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
      		Widgets <b class="caret"></b>
      	</a>
        <ul class="dropdown-menu mega-menu">
          <li>
            <div class="row-fluid">
              <div class="span8">
                <div class="row-fluid">
                  <ul class="media-list span6">
                    <li class="media">
                    	<a href="#" class="pull-left">
                    		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                    	</a>
                      <div class="media-body">
                        <h5 class="media-heading"><a href="#">Shiny Widgets</a></h5>
                        <ul class="unstyled">
                          <li><a href="#">Subcategory One</a></li>
                          <li><a href="#">Subcategory Two</a></li>
                          <li><a href="#">Sub Category Three with a Longer Name</a></li>
                          <li><a href="#">Subcategory Four</a></li>
                          <li><a href="#">Subcategory Five</a></li>
                        </ul>
                      </div>
                    </li>
                  </ul>
                  <ul class="media-list span6">
                    <li class="media">
                    	<a href="#" class="pull-left">
                    		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                    	</a>
                      <div class="media-body">
                        <h5 class="media-heading"><a href="#">Shiny Widgets</a></h5>
                        <ul class="unstyled">
                          <li><a href="#">Subcategory One</a></li>
                          <li><a href="#">Subcategory Two</a></li>
                          <li><a href="#">Sub Category Three with a Longer Name</a></li>
                          <li><a href="#">Subcategory Four</a></li>
                          <li><a href="#">Subcategory Five</a></li>
                        </ul>
                      </div>
                    </li>
                  </ul>
                </div>
                <hr>
                <div class="row-fluid">
                  <ul class="media-list span6">
                    <li class="media">
                    	<a href="#" class="pull-left">
                    		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                    	</a>
                      <div class="media-body">
                        <h5 class="media-heading"><a href="#">Shiny Widgets</a></h5>
                        <ul class="unstyled">
                          <li><a href="#">Subcategory One</a></li>
                          <li><a href="#">Subcategory Two</a></li>
                          <li><a href="#">Sub Category Three with a Longer Name</a></li>
                          <li><a href="#">Subcategory Four</a></li>
                          <li><a href="#">Subcategory Five</a></li>
                        </ul>
                      </div>
                    </li>
                  </ul>
                  <ul class="media-list span6">
                    <li class="media">
                    	<a href="#" class="pull-left">
                    		<img src="http://lorempixel.com/70/70/" alt="" class="media-object">
                    	</a>
                      <div class="media-body">
                        <h5 class="media-heading"><a href="#">Shiny Widgets</a></h5>
                        <ul class="unstyled">
                          <li><a href="#">Subcategory One</a></li>
                          <li><a href="#">Subcategory Two</a></li>
                          <li><a href="#">Sub Category Three with a Longer Name</a></li>
                          <li><a href="#">Subcategory Four</a></li>
                          <li><a href="#">Subcategory Five</a></li>
                        </ul>
                      </div>
                    </li>
                  </ul>
                </div>
              </div>
              <div class="span4">
                <h5>Featured Item</h5>
              </div>
            </div>
          </li>
        </ul>
      </li>
    </ul>
  </div>
</div>

              
            
!

CSS

              
                @import "compass/css3";


body { padding: 3%; }

.nav-mega {
	width: 100%;
  .dropdown { 
		// disable relative positioning on dropdown container
		// mega-menu will get left from parent .nav-mega
		position: static; 
	}
	.dropdown-menu.mega-menu {
		@include box-sizing(border-box);
		@include border-top-radius(0);
		min-width: auto;
    width: 100%;
		margin-top: 0;
		padding: 0;
		border-color: #ccc;
		> li {
			//@include box-shadow(rgba(black, 0.1) 0 2px 6px inset);
			padding: 20px;
		}
		.media-list {
			.media { padding: 10px; font-size: 13px; }
			.media-heading { font-size: 16px; }
			//.media-object { max-width: 70px; }
		}
	}
}

              
            
!

JS

              
                
              
            
!
999px

Console