Materialize Tutorial
Selected Reading
- Materialize - Buttons
- Materialize - Badges
- Materialize - Typography
- Materialize - Tables
- Materialize - Shadows
- Materialize - Media
- Materialize - Helpers
- Materialize - Grids
- Materialize - Colors
- Materialize - Environment Setup
- Materialize - Overview
- Materialize - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Materialize - Shadows
Materiapze - Shadows
Materiapze has several special classes to display containers as paper-pke cards with shadow.
Sr.No. | Class Name & Description |
---|---|
1 | z-depth-0 Removes the shadow of elements having z-depth by default. |
2 | z-depth-1 Styles a container for any HTML content with 1px bordered shadow. Adds z-depth of 1. |
3 | z-depth-2 Styles a container for any HTML content with 2px bordered shadow. Adds z-depth of 2. |
4 | z-depth-3 Styles a container for any HTML content with 3px bordered shadow. Adds z-depth of 3. |
5 | z-depth-4 Styles a container for any HTML content with 4px bordered shadow. Adds z-depth of 4. |
6 | z-depth-5 Styles a container for any HTML content with 5px bordered shadow. Adds z-depth of 5. |
Example
<!DOCTYPE html> <html> <head> <title>The Materiapze Example</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <pnk rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"> <pnk rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/pbs/materiapze/0.97.3/css/materiapze.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/pbs/materiapze/0.97.3/js/materiapze.min.js"></script> <style> span { width : 200px; height : 200px; } </style> </head> <body class="container"> <h2>Materiapze Shadow Examples</h2> <hr/> <span class="card-panel"> <p><b>TODO:</b> Learn HTML5</p> </span> <span class="z-depth-1"> <p><b>TODO:</b> Learn HTML5</p> </span> <span class="z-depth-2"> <p><b>TODO:</b> Learn HTML5</p> </span> <span class="z-depth-3"> <p><b>TODO:</b> Learn HTML5</p> </span> <span class="z-depth-4"> <p><b>TODO:</b> Learn HTML5</p> </span> <span class="z-depth-5"> <p><b>TODO:</b> Learn HTML5</p> </span> </body> </html>
Output
Verify the output.
Advertisements