开发者

How do I get the text to align with the photo

If y开发者_JAVA百科ou look at the page, http://aurorasvoice.org/index.php?option=com_content&view=article&id=37&Itemid=4, you'll see a big table with rows of data containing a photo and a biography. I used valign="top" on the td portion so they could align on the top for each row, but it looks like the photo is a bit higher than the bio. any help? maybe a style setting?

thanks!


The alignment is actually correct. HTML line-height includes some spacing above and below the text, otherwise your text would all mash together. Due to this, your top-pixel of the text won't line up exactly with the top edge of the image. If you really need it to line-up to the pixels, add a top-margin to the image.

How do I get the text to align with the photo

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜