.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的中間位置) 我該怎麼做?
你能否給我們鏈接到'jsfiddle.net'。它會幫助我們明白你的問題,顯然! – 2013-05-02 10:59:30
您是否嘗試過使用[float](http://www.w3.org/TR/CSS2/visuren.html#float-position)? – NINCOMPOOP 2013-05-02 10:59:33
修復你的CSS中的大量拼寫錯誤和語法錯誤將是一個很好的開始... – BenM 2013-05-02 11:01:06