CSS
.container{
height: 250px;
padding 10px 0;
}
.col-left{
display: inline-block;
background-image:url("support.png");
height:235px;
width:300px;
}
.col-right{
display: inline-block;
width:600px;
}
html
<div class="container">
<div class="col-left"></div>
<div class="col-right">
<h1>this is my title</h1>
<p>to reach their Potential</p>
</div>
</div>
質問:
左側に画像、右側にテキストが必要です
同じ行に表示します。
縦に並べる (テキストは img の中間位置に表示される) どうすればこれを行うことができますか?