octocatstartv

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="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>

            
          
!
            
              @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; }
		}
	}
}

            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console