12 列のグリッドの同じ行に、テキスト行とそれに続く画像を作成しようとしています。
何らかの理由で、画像 2 が画像 1 のテキストに沿って表示され、画像 2 が画像 1 のテキストと共に表示されます。
div 内のテキスト要素と画像要素が互いに上下にあるように見えます。私が望むのは、それらが並んでいることです。
これを解決するにはどうすればよいですか? 私はここにコードを提示しました
http://jsfiddle.net/Dano007/P7nzy/embedded/result/
http://jsfiddle.net/Dano007/P7nzy/
HTML
<div class="grid_6">
<p class="text">"The best selection of cheese I've ever seen! Cannot wait for our next order!"</p>
<p class="image omega"><img src="img/cheese1.jpg" alt="Contact us"></p>
</div>
<div class="grid_5">
<p class="image"><img src="img/cheese2.jpg" alt="Contact us"></p>
<p class="text omega" id="text_left">"Wow, amazing cheese selection and very fast delivery!"</p>
</div>
CSS
.text {
display:inline-block;
font-size: 3.0em;
text-align: right;
}
#text_left {text-align: left; }
.image {
display:inline-block;
text-align: center;
border:solid 4px #6b5221;
}