ShapeYourPath
(current)
Run Code
Live Code Editor- Materialize CSS Grid Offsets
Source Code
<!DOCTYPE html> <html lang="en"> <head> <!--Let browser know 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 Grid Offset Example</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 Grid Offset </h1> <p class="center-align"> Materialize CSS grid offset is used to create empty space to the left and round of the existing column </p> <div class="row center-align"> <div class="col s12 blue white-text"><p>s12</p></div> </div> <div class="row center-align"> <div class="col s6 m6 offset-s3 offset-m3 purple white-text"><p>( offset-s3 offset-m3 )</p></div> </div> <div class="row center-align"> <div class="col s6 m6 offset-s6 offset-m6 teal white-text"><p>( offset-s6 offset-m6 )</p></div> </div> <div class="row center-align"> <div class="col s6 m6 green white-text"><p>s6 m6</p></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