Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Bootstrap grille challenge
<!doctype html>
<html lang="en">
<head>
<title>grille</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="grillestyle.css">
</head>
<body>
<div class="container">
<div class="row no-gutters">
<div class="col-1 bg-dark" >
</div>
<div class="col-1 offset-9 bg-dark" >
</div>
</div>
<div class="row no-gutters">
<div class="col-1 bg-dark " >
</div>
<div class="col-1 offset-3">
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 ">
</div>
<div class="col-1 offset-3 bg-dark">
</div>
</div>
<div class="row no-gutters">
<div class="col-1 bg-dark" >
</div>
<div class="col-1 offset-2 ">
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 ">
</div>
<div class="col-1 offset-2 bg-dark">
</div>
</div>
<div class="row no-gutters">
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 ">
</div>
<div class="col-1 ">
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 ">
</div>
<div class="col-1 ">
</div>
<div class="col-1 bg-dark">
</div>
<div class="col-1 bg-dark">
</div>
</div>
<div class="row no-gutters">
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 offset-1">
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 ">
</div>
<div class="col-1 offset-1 bg-dark">
</div>
<div class="col-1 bg-dark">
</div>
</div>
<div class="row no-gutters">
<div class="col-1 bg-dark " >
</div>
<div class="col-1 bg-dark " >
</div>
<div class="col-1 bg-dark " >
</div>
<div class="col-1 offset-1">
</div>
<div class="col-1 bg-warning">
</div>
<div class="col-1 ">
</div>
<div class="col-1 offset-1 bg-dark">
</div>
<div class="col-1 bg-dark " >
</div>
<div class="col-1 bg-dark " >
</div>
</div>
<div class="row no-gutters ">
<div class="col-1 offset-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 offset-3 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
</div>
<div class="row no-gutters ">
<div class="col-1 offset-2 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
</div>
<div class="row no-gutters">
<div class="col-1 offset-3 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
</div>
<div class="row no-gutters">
<div class="col-1 offset-4 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
</div>
<div class="row no-gutters">
<div class="col-1 offset-4 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
<div class="col-1 bg-dark" >
</div>
</div>
</div>
</body>
</html>
@media (min-width: 768px) {
.container {
width: 750px;
}
}
@media (min-width: 992px) {
.container {
width: 970px;
}
}
@media (min-width: 1200px) {
.container {
width: 1170px;
}
}
.container {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.col-1 {
padding-top: 8%;
background-color: orange;
border: 1px white solid;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.