I'm trying to align text vertically in my header but it seems impossible.
I want my header content to always be in the center vertically, I did horizontal but not vertical.
Thank you.
Here is the sample code and the images:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<link href="Content/bootstrap.css" rel="stylesheet" />
<script src="Scripts/jquery-1.9.1.js"></script>
<script src="Scripts/bootstrap.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="row" style="background-color:gray;">
<div class="col-md-3" style="background-color:red; text-align:center;">
<img src="bootstrap-logo.jpg" style="width:100%;" />
</div>
<div class="col-md-3" style="background-color:blue; text-align:center;" >
Quadrado 2
<br />
Quadrado 2
<br />
</div>
<div class="col-md-3" style="background-color:red; text-align:center;">
Quadrado 3
<br />
</div>
<div class="col-md-3" style="background-color:blue; text-align:center;">
Quadrado 4
<br />
Quadrado 4
<br />
Quadrado 4
<br />
Quadrado 4
<br />
</div>
</div>
<div class="row" style="height:6px; background-color:black;">
<div class="col-md-12">
</div>
</div>
<div class="row" style="background-color:gray;">
<div class="col-md-3" style="background-color:red; text-align:center;">
<img src="bootstrap-logo.jpg" style="width:100%;" />
</div>
<div class="col-md-3" style="background-color:blue; text-align:center;">
Quadrado 2
<br />
Quadrado 2
<br />
</div>
<div class="col-md-3" style="background-color:red; text-align:center;">
Quadrado 3
<br />
</div>
<div class="col-md-3" style="background-color:blue; text-align:center;">
Quadrado 4
<br />
Quadrado 4
<br />
Quadrado 4
<br />
Quadrado 4
<br />
</div>
</div>
</div>
</body>
</html>
Follow the sample images: