Need a basic submenu for my CSS navigation -


so disregarding styling , else, sub menu appear of navigation selections.

right have basic list made on own using online tutorial. afterwards though, after searching through web, still have not found submenu navigation close code or understanding.

this html code:

<div class="navigation">       <li>         <h2>services</h2>      </li>          <li>         <h2>store</h2> </l          <li><a href="#">photoshop</a></li>             <li><a href="#">illustrator</a></li>             <li><a href="#">web design</a></li>        </li>     </nav>   </div>      <div class="navigation blue">  <li> <a href="https://www.facebook.com/pages/argano-computer-services/268377233227887?fref=ts">         <h2>facebook</h2>          </a></li></div><a href="https://www.facebook.com/pages/argano-computer-services/268377233227887?fref=ts">         </a>      <div class="navigation orange">     <li>     <a href="http://www.bing.com/maps/default.aspx?v=2&amp;pc=facebk&amp;mid=8100&amp;rtp=adr.~pos.35.195859_-106.672877_argano+computer+services_10009+clearwater+court%2c+albuquerque%2c+new+mexico&amp;cp=35.195859~-106.672877&amp;lvl=16&amp;sty=r&amp;rtop=0~0~0~&amp;mode=d&amp;form=fbkpl1&amp;mkt=en-us" target="_blank">         <h2>locate</h2>       </a>     </li>      </div>      <div class="navigation green">     <li>         <h2>feedback</h2>      </li>      </div>      <div class="navigation purple">     <li>         <h2>about</h2>       </li> </div>  </div> </div> 

this css:

<div class="navigation">       <li>         <h2>services</h2>      </li>          <li>         <h2>store</h2> </l          <li><a href="#">photoshop</a></li>             <li><a href="#">illustrator</a></li>             <li><a href="#">web design</a></li>        </li>     </nav>   </div>      <div class="navigation blue">  <li> <a href="https://www.facebook.com/pages/argano-computer-services/268377233227887?fref=ts">         <h2>facebook</h2>          </a></li></div><a href="https://www.facebook.com/pages/argano-computer-services/268377233227887?fref=ts">         </a>       <div class="navigation orange">     <li>     <a href="http://www.bing.com/maps/default.aspx?v=2&amp;pc=facebk&amp;mid=8100&amp;rtp=adr.~pos.35.195859_-106.672877_argano+computer+services_10009+clearwater+court%2c+albuquerque%2c+new+mexico&amp;cp=35.195859~-106.672877&amp;lvl=16&amp;sty=r&amp;rtop=0~0~0~&amp;mode=d&amp;form=fbkpl1&amp;mkt=en-us" target="_blank">         <h2>locate</h2>       </a>     </li>      </div>      <div class="navigation green">     <li>         <h2>feedback</h2>      </li>      </div>      <div class="navigation purple">     <li>         <h2>about</h2>       </li> </div>  </div> </div> 

any suggestions?

simple submenu you:

<ul id="submenu">     <li>home</li>     <li>about</li>     <li>team</li> </ul>  <style>     *, *:before, *:after {         -webkit-box-sizing: border-box;         -moz-box-sizing: border-box;         box-sizing: border-box;         zoom: 1;     }      #submenu {         width: 200px;         background: #eee;         padding: 10px;     }      #submenu li{         margin: 0;         margin-bottom: 10px;         position: relative;         text-align: center;         font-weight: bold;         color: #fff !important;         line-height: 1 !important;         font-family: "helvetica neue", helvetica, arial, sans-serif;         white-space: nowrap;         border: none;         cursor: pointer;         display: inline-block;         vertical-align: middle;         zoom: 1;         border-radius: 3px;         -webkit-font-smoothing: antialiased;         background-color: #77cc6d;         text-shadow: 0 1px 0 rgba(0,0,0,0.15);         font-size: 15px;         padding: 12px 12px 12px 12px;         box-shadow: 0 3px 0 0 #53994b;         width: 100%;     }      #submenu li:active, #submenu li:focus{         box-shadow: 0 1px 0 0 #53994b;         top: 2px;     }      #submenu li:last-child{         margin-bottom: 0px;     } </style> 

jsfiddle: http://jsfiddle.net/alggp/1/


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -