123

Pen Settings

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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <html>
<head>
    <title>MegaMenu</title>
    <script src="https://s.codepen.io/assets/libs/modernizr.js"></script>
    <link rel="stylesheet prefetch" href="//cdn.jsdelivr.net/foundation/5.1.1/css/foundation.min.css">
</head>
<body>
    <header class="hide-on-print">
        <div class="nav-container fixed contain-to-grid">
            <nav class="top-bar" data-topbar="" data-options="is_hover: true; custom_back_text: false">
                <ul class="title-area">
                    <li class="name">
                        <h1><a href="#">Home</a></h1>
                    </li>
                    <li class="toggle-topbar menu-icon"><a href="#"><span></span></a></li>
                </ul>
                <section class="top-bar-section">
                    <ul class="left">
                        <li class="has-dropdown hide-for-medium-up">
                            <a href="menu2.aspx">Menu 1</a>
                            <ul class="dropdown">
                                <li><a href="SubItem1.aspx">SubItem 1</a></li>
                                <li><a href="SubItem2.aspx">SubItem 2</a></li>
                            </ul>
                        </li>
                        <li class="show-for-medium-up has-dropdown">
                            <a data-dropdown="mega1" data-options="is_hover:true" href="#">Menu 1</a>
                        </li>
                    </ul>
                    <ul class="left">
                        <li class="has-dropdown hide-for-large-up">
                            <a href="menu2.aspx">Menu 2</a>
                            <ul class="dropdown">
                                <li><a href="SubItem1.aspx">SubItem 1</a></li>
                                <li><a href="SubItem2.aspx">SubItem 2</a></li>
                            </ul>
                        </li>
                        <li class="show-for-large-up has-dropdown">
                            <a data-dropdown="mega2" data-options="is_hover:true" href="#">Menu 2</a>
                        </li>
                    </ul>
                </section>
                <section class="top-bar-mega">
                    <div id="mega1" data-dropdown-content="" class="f-dropdown content row">
                        <div class="medium-16 columns">
                            <h5>Try one of these buttons:</h5>
                            <ul class="medium-block-grid-4 large-block-grid-8">
                                <li><a href="#" class="small button">Simple Button</a></li>
                                <li><a href="#" class="small radius button">Radius Button</a></li>
                                <li><a href="#" class="small round button">Round Button</a></li>
                                <li><a href="#" class="medium success button">Success Btn</a></li>
                                <li><a href="#" class="medium alert button">Alert Btn</a></li>
                                <li><a href="#" class="medium secondary button">Secondary Btn</a></li>
                            </ul>                            <div class="panel">
                                <h5>So many components, girl!</h5>
                                <p>A whole kitchen sink of goodies comes with Foundation. Checkout the docs to see them all, along with details on making them your own.</p>
                                <a href="https://foundation.zurb.com/docs/" class="small button">Go to Foundation Docs</a>
                            </div>
                        </div>

                    </div>
                    <div id="mega2" data-dropdown-content="" class="f-dropdown content row">
                        <div class="large-16 columns">
                            <div class="flex-video widescreen vimeo">
                                <iframe src="//player.vimeo.com/video/75749068?autoplay=0"></iframe>
                            </div>
                        </div>
                    </div>
                </section>
            </nav>
        </div>
    </header>
    <div class="row">
        <div class="large-16 columns">
            <h1>Welcome to Foundation</h1>
        </div>
    </div>
    <div class="row">
        <div class="large-16 columns">
            <div class="panel">
                <h3>We&rsquo;re stoked you want to try Foundation! </h3>
                <p>To get going, this file (index.html) includes some basic styles you can modify, play around with, or totally destroy to get going.</p>
                <p>Once you've exhausted the fun in this document, you should check out:</p>
                <div class="row">
                    <div class="large-4 medium-4 columns">
                        <p><a href="https://foundation.zurb.com/docs">Foundation Documentation</a><br />Everything you need to know about using the framework.</p>
                    </div>
                    <div class="large-4 medium-4 columns">
                        <p><a href="https://github.com/zurb/foundation">Foundation on Github</a><br />Latest code, issue reports, feature requests and more.</p>
                    </div>
                    <div class="large-4 medium-4 columns">
                        <p><a href="https://twitter.com/foundationzurb">@foundationzurb</a><br />Ping us on Twitter if you have questions. If you build something with this we'd love to see it (and send you a totally boss sticker).</p>
                    </div>
                    <div class="large-4 medium-4 columns">
                        <p><a href="https://twitter.com/foundationzurb">@foundationzurb</a><br />Ping us on Twitter if you have questions. If you build something with this we'd love to see it (and send you a totally boss sticker).</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="//cdn.jsdelivr.net/foundation/5.1.1/js/foundation.min.js"></script>
</body>
</html>

            
          
!
            
              .top-bar-mega .f-dropdown.content.open {
    left: 0px !important;
    max-width: none;
}
            
          
!
            
              $(document).foundation();
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console