Last active
March 17, 2017 17:23
-
-
Save ktzanev/a9899fb681d8639c69e8ad7fa3907c39 to your computer and use it in GitHub Desktop.
Exemple de la grille de Bootstrap (GistRun)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title> | |
Example Bootstrap | |
</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-4">1</div> | |
<div class="col-sm-8">2</div> | |
<div class="col-xs-offset-2 col-xs-8">3</div> | |
<div class="col-xs-offset-4 col-xs-4">4</div> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[class*=col-] { | |
background-color:lightgreen; | |
outline: 1px red solid; | |
font-weight: bold; | |
text-align: center; | |
padding:2vw; | |
} | |
.row { | |
background-color:yellow; | |
} | |
.row .row { | |
background-color:orange; | |
} | |
.clearfix { | |
outline: 1px blue solid; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment