Vertical align in bootstrap 3
home
Run
screen_rotation
fullscreen
cloud_download
<html> <head> <title>Bootstrap Grid</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> <style type="text/css"> .vertical-center { display: inline-block; vertical-align: middle !important; float: none; } .vertical-top { display: inline-block; vertical-align: top !important; float: none; } .vertical-bottom { display: inline-block; vertical-align: bottom !important; float: none; } </style> </head> <body> <div class="container" style="padding:150px;"> <table class="table"> <tr><td class="vertical-top" style="height:100px;">Top Align</td></tr> <tr><td class="vertical-center" style="height:100px;">Center Align</td></tr> <tr><td class="vertical-bottom" style="height:100px;">Bottom Align</td></tr> </table> </div> </body> </html>
<html> <head> <title>Bootstrap Grid</title> <!-- Latest compiled and minified CSS --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> <!-- Optional theme --> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <!-- Latest compiled and minified JavaScript --> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js"></script> <style type="text/css"> .vertical-center { display: inline-block; vertical-align: middle !important; float: none; } .vertical-top { display: inline-block; vertical-align: top !important; float: none; } .vertical-bottom { display: inline-block; vertical-align: bottom !important; float: none; } </style> </head> <body> <div class="container" style="padding:150px;"> <table class="table"> <tr><td class="vertical-top" style="height:100px;">Top Align</td></tr> <tr><td class="vertical-center" style="height:100px;">Center Align</td></tr> <tr><td class="vertical-bottom" style="height:100px;">Bottom Align</td></tr> </table> </div> </body> </html>
Copyrights@tutorialsplane.com