Tutorial : Create Dropdown Menu Using Materialize CSS

Image
Download HTML File : Dropdown Menu in Navbar Menu We already learnt how to create mobile friendly menu in Previous Tutorial . But There is no dropdown menu. So in this tutorial we learn to create a dropdown menu. Now you all learnt to adding a CSS, JS and JQuery files. So i start directly to making dropdown menu in NavBar. First Make Navbar Menu. Responsive Navbar Menu  . Create Dropdown menu content using ul tag and you must use id tag.Put it before nav tag. <ul class= "dropdown-content" id= "comp-menu3" > <li><a href= "#" > Sub-Menu1 </a></li> <li><a href= "#" > Sub-Menu2 </a></li> <li><a href= "#" > Sub-Menu3 </a></li> </ul> Use id of Dropdown as data-activates property to menu link which going to display submenu. Apply dropdown-button as a class to menu link. <li><a href= "#" data-activ...

Tutorial : Create Materialize CSS Menu(Direct Link) for Webpage



In this tutorial we will learn to create navbar menu. We will use materialize css. So to use it we have to download materialize design css framework. You can download it from following links :



  1. Extract zip and put css folder in Folder.
  2. Create index.html file in that folder.
  3. In that file
    1. Link CSS file in head tag
    2. <link href="path to materialize.min.css" rel="stylesheet">
      
    3. Create <nav> tag
      1. The <nav> tag defines a set of navigation links. - w3schools
    4. Create div with nav-wrapper class.
      1. It will wrap all content to navigation bar.
    5. Create <ul> tag and in that create <li> tag which represent our menu.
    6. <ul>
          <li><a href="#">Menu 1<li>
      </ul>
    7. To display logo use brand-logo class with li tag within nav-wrapper div.
    8. You can use center, right, left class with ul  or li(for logo) tag to  align it within nav wrapper.
    9. Use different color class like cyan,red etc. to color your nav bar
  4. See Example.
  5. Download HTML File put it in folder.

Comments

Popular posts from this blog

Tutorial : Material CSS Mobile Responsive Menu (Hamburger Menu)

Tutorial : Create Dropdown Menu Using Materialize CSS