sudhakarinfotech
(current)
Run Code
Live Code Editor-
Source Code
<!DOCTYPE html> <html lang="en"> <head> <title>Materialize CSS Dropdown Divider</title> <meta name="viewport" content="width = device-width, initial-scale = 1" /> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" /> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" /> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> <style type="text/css"> .dropdown-content { min-width: 250px; } h1{ font-size:28px; } </style> </head> <body> <h1 class="center-align">Materialize Dropdown Divider</h1> <div class="row"> <div class="col s12 center-align"> <!-- Dropdown Trigger --> <a class="dropdown-trigger btn" href="#" data-target="dropdown_id">Drop Me!</a> <!-- Dropdown Structure --> <ul id="dropdown_id" class="dropdown-content"> <li> <a href="#">Web Development</a> </li> <li> <a href="#">Graphics Design</a> </li> <li class="divider"></li> <li> <a href="#">App Development</a> </li> <li> <a href="#"> <i class="material-icons"></i>Game Development </a> </li> <li> <a href="#"> <i class="material-icons">cloud</i>Hybrid App Development </a> </li> </ul> </div> </div> <script type="text/javascript"> $(document).ready(function() { $('.dropdown-trigger').dropdown(); }); </script> </body> </html>
Source Code Output :
Running