我想将本网站http://paulcwebster.com顶部的两张图片 与它们旁边的文字对齐。
到目前为止,我能够将两个图像并排对齐,但我遇到了以下问题:
1) 文本在图像之间没有任何空格。
2) 对于不同浏览器上的图像,文本太短或太长。
3) 文字大小与图片位置不匹配
4)无法将文本“Recent Publications”向左移动(我已经尝试了 align="left" 并将其放入它自己的 div 中)
这是我的代码:
<div >
<img src="gfx/FrontImage1.jpg" width="180" height="180" alt="Image1" style="float:left">
<img src="gfx/FrontImage3.jpg" width="180" height="180" alt="Image2" style="float:left">
<span ><p>Paul Christopher Webster is a freelance writer and documentary film director based in Toronto, Canada. He has reported from 20 countries since 1992.</p>
Paul's work in film has appeared on the Arte, BBC, CBC, Deutsche Welle, Discovery, National Geographic, Slice, SWR and Vision Television networks. His work as a writer has been published in dozens of magazines, journals and newspapers across Canada, the U.S, and Europe. </p>
<p>He has won four national magazine awards for his writing, and Tier One Journalism Award from the Canadian Institutes of Health Research. His work on documentary films has garnered awards from the Canadian Association of Journalists, Hot Docs, the Canadian Academy of Film and Television, and PARISCIENCE, the international festival of scientific films.
<p>Paul’s work focuses on themes in business, science, and politics. For samples of his work in these categories, please click on the links to articles below.
</span>
</div>