ブログの投稿記事に画像を並べて表示させる
方法を教えてください。
改行せずにそのまま次の画像を置いても横には並びません。
現状は、中央寄せでたて一列になっていますが、
横に2つづ並べたいのです。
回答(2)
1.
2.

これを追加すると画像や文字が横に表示されるようになります.
タグの具体例:
<img src="画像1のURL" align="left"><img src="画像2のURL" align="left">
コメント(5)
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=hissyoupachis-23...; style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe>
が元のHTMLで他のものも下のようにしたのですが、駄目でした。align="left"を入れる場所が
間違っているのでしょうか?
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=hissyoupachis-23...; style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" align="left"></iframe>
インラインフレームでのamazonの表示ですか.align 属性の指定で実現できると思うのですが.
サンプルを書いてみましたのでこれで試してみてください.
<iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=hissyoupachis-23&o=9&p=8&l=as1&asins=5895776921&fc1=000000&IS2=1<1=_blank&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr&npa=1" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" align="left"> </iframe> <iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=hissyoupachis-23&o=9&p=8&l=as1&asins=5895776921&fc1=000000&IS2=1<1=_blank&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr&npa=1" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" align="left"> </iframe> <br clear="all">
もしくは>>1の回答で書かれている次のようなtableタグで並べることもできます.
tabelタグを使う場合のサンプルです.
<table> <td> <iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=hissyoupachis-23&o=9&p=8&l=as1&asins=5895776921&fc1=000000&IS2=1<1=_blank&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr&npa=1" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"> </td> <td> <iframe src="http://rcm-jp.amazon.co.jp/e/cm?t=hissyoupachis-23&o=9&p=8&l=as1&asins=5895776921&fc1=000000&IS2=1<1=_blank&lc1=0000FF&bc1=000000&bg1=FFFFFF&f=ifr&npa=1" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe> </td> </table>
テーブルタグで画像を並べることはできたのですが、画像と画像の間をもう少し空けるには
どうすればいいでしょうか?
<td>
</td>
を1つめと2つめの画像の間にいれれば
スペースができるとおもったのですが、
駄目みたいです。
よろしく、お願いします。



