ShapeYourPath
(current)
Run Code
Live Code Editor- Materialize 12-Column Grid Layout
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!--Let browser know the website is optimized for mobile--> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="description" content=""> <!--Import Google Icon Font--> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> <!--Import materialize.css--> <!-- Compiled and minified CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css" /> <title>Materialize CSS 12 Column Grid Layout</title> <style type="text/css"> p{font-size:18px;} h1{font-size: 28px;} </style> </head> <body> <div class="container"> <h1 class="center-align">Materialize CSS 12 Column Grid Layout</h1> <p class="center-align"> Materialize CSS column is a mandatory part of the grid system. It is created with the help of the .col class.Let us create Materialize 12 column grid layout. </p> </div> <div class="container"> <div class="row"> <div class="col s1 teal">1</div> <div class="col s1 orange">2</div> <div class="col s1 teal">3</div> <div class="col s1 orange">4</div> <div class="col s1 teal">5</div> <div class="col s1 orange">6</div> <div class="col s1 teal">7</div> <div class="col s1 orange">8</div> <div class="col s1 teal">9</div> <div class="col s1 orange">10</div> <div class="col s1 teal">11</div> <div class="col s1 orange">12</div> </div> </div> <!-- Compiled and minified JavaScript --> <script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> </body> </html>
Output :
Running