Materialize has several special classes to display containers as paper-like cards with shadow.
Example
materialize_shadows.htm<!DOCTYPE html> <html> <head> <title>The Materialize Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/js/materialize.min.js"></script> <style> div { width : 200px; height : 200px; } </style> </head> <body class="container"> <h2>Materialize Shadow Examples</h2> <hr/> <div class="card-panel"> <p><b>TODO:</b> Learn HTML5</p> </div> <div class="z-depth-1"> <p><b>TODO:</b> Learn HTML5</p> </div> <div class="z-depth-2"> <p><b>TODO:</b> Learn HTML5</p> </div> <div class="z-depth-3"> <p><b>TODO:</b> Learn HTML5</p> </div> <div class="z-depth-4"> <p><b>TODO:</b> Learn HTML5</p> </div> <div class="z-depth-5"> <p><b>TODO:</b> Learn HTML5</p> </div> </body> </html>
No comments:
Post a Comment