开发者

css postioning with images and text at top?

i have this li list which displays an image with the username right 开发者_如何学运维next to it: but the username is at the bottom, i want it to be at the top:

just like this:

css postioning with images and text at top?

the code i have is at http://www.jsfiddle.net/RpCUV/ with an illustration of my current code,

i know this is a simple questions, but i'm new to this, thanks


add vertical-align: top to the CSS for the <img> tag


Just glancing over I would recommend floating the image and adjusting line-height

  li img{float:left;}
  li {line-height: 1.5 ish;}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜