フレックスボックスを使用してアイテムを内側に整列させています(それ以外のものは動作していないようです)。ブートストラップレスポンス埋め込みは完全に消滅しているように見えますが、理由はわかりません。私は埋め込みにposition: relative
を使用することができません。ここでのコードは次のように二列の内側にあなたの "COL-MD-6" を挿入することができる...フレックスボックスの内部にブートストラップレスポンス埋め込みが消えますか?
.embed-responsive {
/*position: initial;*/ /* if set to initial or anything other than relative is re-appears but is no longer responsive */
}
body {
background: grey;
}
div.title-area {
height: 350px;
width: 100%;
position: relative;
padding: 0 50px 0 50px;
}
div.title-area .video {
box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
}
div.title-area > .col-md-6 {
min-height: 100%;
display: flex;
align-items: center;
}
div.title-area h1 {
text-shadow: 0 3px 6px rgba(0, 0, 0, .35);
margin: 0;
text-transform: uppercase;
/*vertical-align: middle;
display: table-cell;
position: relative;*/
}
.title-area h1 > small{
color: white;
font-size: 15px;
text-indent: 5px;
display: block;
opacity: .6;
text-transform: uppercase;
}
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<div class="title-area">
<div class="col-md-6">
<h1>main title<small>subtitle</small></h1>
</div>
<div class="col-md-6">
<div class="embed-responsive embed-responsive-16by9 video">
<iframe class="embed-responsive-item" src="https://www.youtube.com/embed/rqEy5_W6YHQ?showinfo=0"></iframe>
</div>
</div>
</div>
これは、それが正しく –
がでそれらを置く動作させるために.row divので.COLのdivをラップする必要が常に正確です行はそれらが解像度にかかわらずスタックするようにします。何を探しているかは、2つの列が並んでいることです。 – Shixma
@Shixma col-md – gaetanoM