Vote count:
0
i'm fairly new to bootstrap grid system, i'm trying to create basic 4-square, when the screen is medium and large, i want it to be a four square, filling up the page and when the screen is small, the 4-square get stack. I thought i got it working but when the screen size gets small, the 2nd and the 3rd box overlap. any advice on what i did wrong? thanks
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>My Website</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<script src="js/respond.min.js"></script>
<style type="text/css">
html, body, .container {
height: 100%;
}
html {
min-height: 100%;
}
.divGeneral{
text-align: center;
border: 2px solid black;
}
.row{
height: 50%
}
#topL{
min-height: 100%;
}
#topR{
min-height: 100%;
}
#botL{
min-height: 100%;
}
#botR{
min-height: 100%;
}
</style>
</head>
<body>
<script src="http://ift.tt/J5OMPW"></script>
<script src="js/bootstrap.min.js"></script>
<div class="container">
<div class="row">
<div class="col-md-6 divGeneral" id="topL">trend charts
</div>
<div class="col-md-6 divGeneral" id="topR">detail
</div>
</div>
<div class="row">
<div class="col-md-6 divGeneral" id="botL">refire
</div>
<div class="col-md-6 divGeneral" id="botR">ncr
</div>
</div>
</div>
</body>
</html>
asked 1 min ago
bootstrap grid system overlap when stacked
Aucun commentaire:
Enregistrer un commentaire