cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

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.

            
              <nav>
    <ul class="menu">
        <!-- Top level menu -->
        <li>
            <a href="#">Inicio</a>
        </li>
        <li>
            <a href="#">
                Tutoriales
                <i class="fa fa-angle-down"></i>
            </a>
            <!-- Submenu -->
            <ul class="dropdown">
                <li><a href="#">Diseño Gráfico</a></li>
                <li><a href="#">Programación PHP</a></li>
                <li><a href="#">Maquetación CSS</a></li>
            </ul>
            <!-- End submenu -->
        </li>
        <li>
            <a href="#">
                Servicios
                <i class="fa fa-angle-down"></i>
            </a>
            <!-- Submenu -->
            <ul class="dropdown">
                <li>
                    <a href="#">
                        Web Hosting
                        <i class="fa fa-angle-right"></i>
                    </a>
                    <!-- Submenu (level 2) -->
                    <ul class="dropdown">
                        <li>
                            <a href="#">Hosting 10GB</a>
                        </li>
                        <li>
                            <a href="#">Hosting 25GB</a>
                        </li>
                        <li>
                            <a href="#">Hosting 50GB</a>
                        </li>
                        <li>
                            <a href="#">Hosting Ilimitado</a>
                        </li>
                    </ul>
                    <!-- End submenu (level 2) -->
                </li>
                <li>
                    <a href="#">
                        Dominios
                        <i class="fa fa-angle-right"></i>
                    </a>
                    <!-- Submenu (level 2) -->
                    <ul class="dropdown">
                        <li>
                            <a href="#">Registrar</a>
                        </li>
                        <li>
                            <a href="#">Transferir</a>
                        </li>
                    </ul>
                    <!-- End submenu (level 2) -->
                </li>
                <li>
                    <a href="#">Diseños Web</a>
                </li>
            </ul>
            <!-- End submenu -->
        </li>
        <!-- End top level menu -->
    </ul>
</nav>
            
          
!
            
              body {
    background: url('../img/background.png') repeat;
}
h3 {
    margin-bottom: 40px;
}
ul.menu {
    width: 600px;
    margin: 0 auto;
}
ul.menu a {
    background: hsl(200, 80%, 50%);
    min-width: 160px;
    padding: 10px 0;
    margin: 2px;
    color: hsl(0, 0%, 100%);
    box-shadow: 0 1px 3px hsla(0, 0%, 0%, 0.5);
    display: block;
    text-decoration: none;
}
ul.menu a:hover {
    background-color: hsl(200, 80%, 35%);
}
ul.menu i {
    float: right;
    margin-right: 15px;
    font-size: 20px;
}
ul.menu li {
    list-style: none;
    text-align: center;
}
ul.menu > li {
    float: left;
}
ul.menu .dropdown {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    min-width: 160px;
    z-index: -1;
    -webkit-transform: translateY(-50px);
    -moz-transform: translateY(-50px);
    -o-transform: translateY(-50px);
    -ms-transform: translateY(-50px);
    transform: translateY(-50px);
    -webkit-transition: all 0.3s ease-out;   
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}
ul.menu .dropdown li {
    position: relative;
}
ul.menu .dropdown ul {
    right: -162px;
    top: 10px;
}
ul.menu li:hover > .dropdown {
    opacity: 1;
    visibility: visible;
    -webkit-transform: translateY(0px);
    -moz-transform: translateY(0px);
    -o-transform: translateY(0px);
    -ms-transform: translateY(0px);
    transform: translateY(0px);
}
            
          
!
999px
Loading ..................

Console