Help in my menu code.

Discussion in 'HTML & Website Design' started by weakpa2, Oct 24, 2014.

  1. #1
    How can I add CSS code for the drop down menu.?
    #cssmenu,
    #cssmenu ul,
    #cssmenu ul li,
    #cssmenu ul li a {
      margin: 0;
      padding: 0;
      border: 0;
      list-style: none;
      line-height: 1;
      display: block;
      position: relative;
      -webkit-box-sizing: border-box;
      -moz-box-sizing: border-box;
      box-sizing: border-box;
    }
    #cssmenu {
      width: auto;
      font-family: Helvetica, Arial, sans-serif;
      color: #ffffff;
    }
    #cssmenu.align-right ul li {
      float: right;
      border-right: 0;
      border-left: 1px solid rgba(0, 0, 0, 0.22);
    }
    #cssmenu.align-right ul li a {
      border-right: 0;
      border-left: 1px solid rgba(255, 255, 255, 0.15);
    }
    #cssmenu ul {
      background: #222222;
      /* Old browsers */
      background: -moz-linear-gradient(bottom, #000000 0%, #222222 50%, #3c3c3c 51%, #393939 78%, #888888 100%);
      background: -webkit-linear-gradient(bottom, #000000 0%, #222222 50%, #3c3c3c 51%, #393939 78%, #888888 100%);
      background: -o-linear-gradient(bottom, #000000 0%, #222222 50%, #3c3c3c 51%, #393939 78%, #888888 100%);
      background: -ms-linear-gradient(bottom, #000000 0%, #222222 50%, #3c3c3c 51%, #393939 78%, #888888 100%);
      background: linear-gradient(to top, #000000 0%, #222222 50%, #3c3c3c 51%, #393939 78%, #888888 100%);
    }
    #cssmenu:after,
    #cssmenu ul:after {
      content: ".";
      display: block;
      clear: both;
      visibility: hidden;
      line-height: 0;
      height: 0;
    }
    #cssmenu ul li {
      float: left;
      display: block;
      border-right: 1px solid rgba(0, 0, 0, 0.22);
      z-index: 1;
    }
    #cssmenu ul li::after {
      content: "";
      width: 100%;
      height: 8px;
      position: absolute;
      border-top-left-radius: 50% 4px;
      border-top-right-radius: 50% 4px;
      background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #222222 61%, #222222 100%);
      background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #222222 61%, #222222 100%);
      background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #222222 61%, #222222 100%);
      background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #222222 61%, #222222 100%);
      background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
      z-index: 2;
      bottom: 10px;
    }
    #cssmenu ul li a {
      display: block;
      padding: 12px 18px;
      text-decoration: none;
      font-size: 12px;
      text-transform: uppercase;
      color: #ffffff;
      border-right: 1px solid rgba(255, 255, 255, 0.15);
      z-index: 3;
    }
    #cssmenu ul li a:hover,
    #cssmenu ul li.active a {
      color: #ffffff;
    }
    #cssmenu ul li:hover,
    #cssmenu ul li.active {
      background: #1275ae;
      /* Old browsers */
      background: -moz-linear-gradient(bottom, #0b4669 0%, #1275ae 50%, #1794dc 51%, #1691d8 78%, #98d2f4 100%);
      background: -webkit-linear-gradient(bottom, #0b4669 0%, #1275ae 50%, #1794dc 51%, #1691d8 78%, #98d2f4 100%);
      background: -o-linear-gradient(bottom, #0b4669 0%, #1275ae 50%, #1794dc 51%, #1691d8 78%, #98d2f4 100%);
      background: -ms-linear-gradient(bottom, #0b4669 0%, #1275ae 50%, #1794dc 51%, #1691d8 78%, #98d2f4 100%);
      background: linear-gradient(to top, #0b4669 0%, #1275ae 50%, #1794dc 51%, #1691d8 78%, #98d2f4 100%);
    }
    #cssmenu ul li:hover::after,
    #cssmenu ul li.active::after {
      background: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #1275ae 61%, #1275ae 100%);
      background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #1275ae 61%, #1275ae 100%);
      background: -ms-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #1275ae 61%, #1275ae 100%);
      background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0) 60%, #1275ae 61%, #1275ae 100%);
      background: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0));
    }
    
    Code (markup):

     
    weakpa2, Oct 24, 2014 IP
  2. MakingMoves

    MakingMoves Active Member

    Messages:
    51
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    50
    #2
    What? did you try google...anyway, use this http://cssmenumaker.com/
     
    MakingMoves, Oct 24, 2014 IP
  3. sahil rajpput

    sahil rajpput Member

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #3
    use this ..... w3school.com:confused:
     
    sahil rajpput, Nov 10, 2014 IP