Created
October 19, 2015 20:27
-
-
Save tobynet/8d048a7cf351c5f3e7bf to your computer and use it in GitHub Desktop.
!!! The 100% Height div block with responsible !!!
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
// Bootstrap を使った段組みのサンプル | |
// col-xs-* なので スマホのときも含めての段組み | |
.row.row-table | |
.left.col-xs-8 | |
.img-block aaaaa | |
.right.col-xs-4 bbbb | |
.row.row-table | |
.left.col-xs-6 dddd | |
.right.col-xs-6 | |
.img-block eeee | |
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
// todo: table, table-cell にする方法 | |
.row-table | |
display: table | |
// 画像などで高さがある場合を想定 | |
.img-block | |
height: 140px | |
// 視認性を上げるための設定 | |
.row | |
width: 80% | |
margin: 0em auto | |
div | |
border: 2px solid #cccccc | |
background: #dddddd | |
margin: 0 | |
div > div | |
border: 2px solid #cccccc | |
background: #eeeeee | |
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
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment