开发者

Text fit the image size

I have a list of images, use the jquery cycle plugin to view these images. To the right of this image, a text is displayed..

The problem is that images have different widths, and would like the text was well matched to this image, always leaving a space just 6px away from the image. Look at the page. http://www.amsdarquitetura.com.br/Project/Details?开发者_运维百科ProjectID=102


I would set the width of the text div to the maximum allowed (i.e., the biggest it could be when placed beside the largest picture) and then float:left so that the text butts up against the pics. You could set the margin-left to 6px or something similar. You may need to float:left the pics as well.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜