Skip to content

Instantly share code, notes, and snippets.

@cryothic
Created September 8, 2015 07:19
Show Gist options
  • Save cryothic/bbe6b37bc88c2fa4b699 to your computer and use it in GitHub Desktop.
Save cryothic/bbe6b37bc88c2fa4b699 to your computer and use it in GitHub Desktop.
JS Bin Push & Pull example for MaterializeCSS. Just to switch 2 cards (half width) on medium display
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Push & Pull example for MaterializeCSS. Just to switch 2 cards (half width) on medium display">
<meta charset="utf-8">
<title>JS Bin</title>
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/css/materialize.min.css">
<style id="jsbin-css">
@media(min-width: 600px) {
.push-m6{
position: relative;
left: 50% !important;
}
.pull-m6{
position: relative;
right: 50% !important;
}
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col s12 m6 push-m6">
<div class="card-panel teal">
<span class="white-text">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. I am similar to what is called a panel in other frameworks.
</span>
</div>
</div>
<div class="col s12 m6 pull-m6">
<div class="card-panel yellow">
<span class="black-text">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. I am similar to what is called a panel in other frameworks.
</span>
</div>
</div>
</div>
</div>
<!-- Compiled and minified JavaScript -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.0/js/materialize.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment