Last active
January 15, 2016 15:13
-
-
Save sawadays0118/06cb4189aae310699f6b to your computer and use it in GitHub Desktop.
display:table-cell;を安易に使うべきでない理由いろいろ ref: http://qiita.com/sawadays0118/items/4c329fd05cdff14ffebc
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
<section> | |
<h2>table-cell</h2> | |
<ul class="gridTable05"> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキスト</a></li> | |
</ul> | |
</section> | |
<section> | |
<h2>float</h2> | |
<ul class="gridList05"> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキストテキスト</a></li> | |
<li><a href="#">テキストテキストテキストテキストテキストテキスト</a></li> | |
</ul> | |
</section> |
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
.displayTableCellSelector:before { | |
content: ""; | |
display: inline-block; | |
vertical-align: middle; | |
height: 100%; | |
min-height: XXXpx;/* 任意のmin-heightを入力 */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment