• jonahsule

    (@jonahsule)


    Hello Every one.
    Please i need some support. I’m trying to create HTML vertical Menu with submenu but i’ve bin facing some challenges. My code keeps on displaying rather than the menu its self. can i get any assistance to help me solve that issue. if possible help write a code i can paste in post page to help me get this done…..

    I’m trying to achieve something like what Armani Have in their side bar menu. http://www.armani.com/at/giorgioarmani/bags-and-shoes_section

Viewing 1 replies (of 1 total)
  • Thread Starter jonahsule

    (@jonahsule)

    <html>
    <head>
    <style>
    html,
    body {
      font-family: Bell MT, Arial, Helvetica, sans-serif; font-size:15px;font-weight:bold; background-color:#6d6767;text-align: center;
    }
    
    /* define a fixed width for the entire menu */
    
    .navigation {
      width: 100%;
    
    }
    
    /* reset our lists to remove bullet points and padding */
    
    .mainmenu,
    .submenu {
      list-style: none;
      padding: 0;
      margin: 0;
    
    }
    
    /* make ALL links (main and submenu) have padding and background color */
    
    .mainmenu a {
      display: block;
      background-color: #6d6767;
      text-decoration: none;
      padding: 0px;
      color: #fff;
      padding-left:30px;
    padding-top:30px;
    }
    
    /* add hover behaviour */
    
    .mainmenu a:hover {
      background-color: #533c56;
    }
    
    /* when hovering over a .mainmenu item,
      display the submenu inside it.
      we're changing the submenu's max-height from 0 to 200px;
    */
    
    .mainmenu li:hover .submenu {
      display: block;
      max-height: 180px;
    }
    
    /*
      we now overwrite the background-color for .submenu links only.
      CSS reads down the page, so code at the bottom will overwrite the code at the top.
    */
    
    .submenu a {
      background-color: #3b2c37;
    font-weight: normal;
    }
    
    /* hover behaviour for links inside .submenu */
    
    .submenu a:hover {
      background-color: #5f0244;
     font-weight: normal;
    }
    
    /* this is the initial state of all submenus.
      we set it to max-height: 0, and hide the overflowed content.
    */
    
    .submenu {
      overflow: hidden;
      max-height: 0;
      -webkit-transition: all 0.5s ease-out;
    font-weight: normal;
    }
    </style>
    <embed>
    </head>
    <body>
    
    <nav class="navigation">
      <ul class="mainmenu">
    
    <li><a href="http://www.ehiokoedion.com/product/shirt/">SHIRT</a></li>
    <li><a href="#">BLAZER/JACKET</a></li>
    <li><a href="#">ACCESSORIES</a>
          <ul class="submenu" style="font-weight: normal; font-size:12px;">
            </li>
    <li><a href="#">LAPEL PIN</a></li>
    <li><a href="#">CRAVAT/NECKTIE/BOW TIE</a></li>
    <li><a href="http://www.ehiokoedion.com/product/shirt/">SUIT AND TUXEDO</a></li>
    <li><a href="#">TROUSER</a></li>
    <li><a href="">NATIVE</a></li>
    </nav>
    
    </body>
    
    </html>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code has now been damaged by the forum’s parser.]

    This is my HTML and CSS code. I need help, actuall want to paste it asside bar.

Viewing 1 replies (of 1 total)

The topic ‘Creating an HTML Vertical Menu on a wordpress post’ is closed to new replies.