I found a really tricky problem for bootstrap div in responsive design.
my code is below:
<!DOCTYPE html>
<html lang="en">
<head>
<title>Example of Bootstrap 3 Grid System</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap- theme.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"> </script>
<style type="text/css">
p{
padding: 50px;
font-size: 32px;
font-weight: bold;
text-align: center;
background: #f2f2f2;
}
</style>
</head>
<body>
<!-- Open the output in a new blank tab (Click the arrow next to "Show Output" button) and resize the window to understand how the Bootstrap responsive grid system works. -->
<div class="container">
<div class="row">
<div class="col-md-2"><p>Box 1 test</p></div>
<div class="col-md-2"><p>Box 2</p></div>
<div class="col-md-2"><p>Box 3</p></div>
<div class="col-md-2"><p>Box 4</p></div>
<div class="col-md-2"><p>Box 5</p></div>
<div class="col-md-2"><p>Box 6</p></div>
<div class="col-md-2"><p>Box 7</p></div>
<div class="col-md-2"><p>Box 8</p></div>
<div class="col-md-2"><p>Box 9</p></div>
<div class="col-md-2"><p>Box 10</p></div>
<div class="col-md-2"><p>Box 11</p></div>
<div class="col-md-2"><p>Box 12</p></div>
</div>
</div>
</body>
</html>
If you try this code in HTML, in a medium sized screen, you will see obviously the Box 7 shows under Box 2 instead of under Box 1. that's because Box 1 have extra strings: test.
So I would like to know if there's a way to make them aligned well? like Box 7 shows under Box 1 and so on...
Thank you guys in advance.
{{item.title}}