<p>
背景として引用画像を使用し、タグ内に多くのテキストを使用する段落があります。タグの前にすべてのテキストを画像の右側に配置して画像を表示しようとしています<p>
が、画像がその中に表示されているように見えますが、これは望ましくありません。少し見やすくするためにフィドルを作成しました:JSFiddle
これが私のCSSです:
.container_12 {
margin-left: auto;
margin-right: auto;
width: 960px;
}
.blockquote {
font-size: 14px;
font-family: 'Times', serif;
font-style: italic;
color: #222222;
background-color: #f7f7f7;
background-image: url(http://somesite/Icon_Quote.png);
background-position: left top;
background-repeat: no-repeat;
min-height: 40px;
padding: 10px;
margin-bottom: 10px;
}
.QuoteTextToLeft {
float: left;
margin: 50px 10px 10px 10px;
}
そしてHTML:
<div class="container_12">
<div>
<img class="QuoteTextToLeft" src="http://someothersite/man.png"
alt="" width="200" height="250" />
<a id="andrew_reeder"></a>
<p class="blockquote">START HERE - this is a test, ... (snipped)
<br />
<br />this is a test, a test of the emergency broadcast system....
<br />
<br />this is a test, a test of the emergency broadcast system....
<br />
<br />this is a test, a test of the emergency broadcast system....
<br />
<br />Someone who cares
<br />
<br />Some title</p>
</div>
私がやりたいのは、<p class="blockquote">
タグの外側に画像を表示して、引用画像が「ここから開始」と表示されている場所に配置されるようにすることです。
現在の外観は次のとおりです。
そして、これが私が望むものです: