Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Centering card with Materialize example
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="">
<!-- Compiled and minified JavaScript -->
<script src=""></script>
<div class="valign-wrapper grey">
<div class="row">
<div class="col s12 m6 offset-m3">
<div class="card blue-grey darken-1">
<div class="card-content white-text">
<span class="card-title">Card Title</span>
<p>I am a very simple card. I am good at containing small bits of information.
I am convenient because I require little markup to use effectively.</p>
<div class="card-action">
<a href="#">This is a link</a>
<a href="#">This is a link</a>
html, body {
height: 100%;
.valign-wrapper {
height: 100%;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment