Skip to content

Instantly share code, notes, and snippets.

@partageit
Created May 31, 2014 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save partageit/fc7e41e2abbd408b1d9b to your computer and use it in GitHub Desktop.
Save partageit/fc7e41e2abbd408b1d9b to your computer and use it in GitHub Desktop.
Bootstrap offset 0
<html>
<head>
<meta charset="UTF-8">
<title>Test offset Bootstrap</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<style>
.col { color: #ffffff; height: 250px; line-height: 250px; font-size: 4em; text-align: center; }
.col1 { background-color: #34495e; }
.col2 { background-color: #2c3e50; }
.col3 { background-color: #95a5a6; }
.col4 { background-color: #7f8c8d; }
</style>
</head>
<body>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 col col1">
Cellule 1
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 col col2">
Cellule 2
</div>
<div class="col-lg-4 col-md-4 col-sm-6 col-xs-12 col col3 col-sm-offset-3 col-md-offset-0">
Cellule 3
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment