画像の下にある他のテキストを移動せずに、画像とテキストを水平方向に揃えるにはどうすればよいですか
私はこれをするのが好きです(サンプルXXXXXは大きな画像です)
XXXXXXXX This is a big image.
XXXXXXXX all text should not goes
XXXXXXXX down the image
XXXXXXXX
しかし、問題は私のテキストが画像の下に落ちたことです
XXXXXXXX This is a big image.
XXXXXXXX
XXXXXXXX
XXXXXXXX
all text should not goes down the image
助けてください。
これが私のコードです
<div id = 'wrap'>
<div class='image'>
<img src="/test/1.jpg" />
This is a big image all text should not goes down the image
</div>
<div class='image'>
<img src="/test/2.jpg" />
This is a big image all text should not goes down the image
</div>
</div>
使ったCSS...
#wrap {
overflow: auto;
height: 300px;
}
.image{
border-top-style:outset;
}
#wrap > div > img {
width : 80px;
height : 70px;
margin-left:5px;
margin-top:5px;
margin-bottom:5px;
padding-bottom: 4px;
float:left;
clear:left;
}