简体   繁体   中英

aligning ul li elements

JSFiddle

I have a list of items where each <li> contains an image that should be on the left and a descriptor that should be on the right. These two elements should align along their top axis. For some reason, the first descriptor is aligned with the second image, the second descriptor with the third image, etc. I'm not at all sure what's going on. Any ideas?

I've created a JSFiddle (above) and an image of what I'm going for (below).

在此输入图像描述

Here you go, this should set you on the right path:

http://jsfiddle.net/aPkyQ/7/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM