Created
September 28, 2016 09:57
-
-
Save bogdandynamic/e28ddc4964d9e8f29498f10e23058e88 to your computer and use it in GitHub Desktop.
Make adjacent cells same height and vertical align content in both
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style type="text/css"> | |
.row { | |
display: table; | |
} | |
.row [class*="col-"] { | |
float: none; | |
display: table-cell; | |
vertical-align: top; | |
} | |
</style> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-xs-3 col-sm-2 col-md-2 col-lg-2" style="max-width:102px; vertical-align:middle;"> | |
<!-- CONTENT --> | |
<img src="http://placehold.it/72x72"> | |
</div> | |
<div class="col-xs-6 col-sm-4" style="vertical-align: middle;"> | |
<!-- CONTENT --> | |
TEXT | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment