CSS3: Top align of list item

Posted by Irishgirl on Stack Overflow See other posts from Stack Overflow or by Irishgirl
Published on 2012-09-08T21:35:39Z Indexed on 2012/09/08 21:37 UTC
Read the original article Hit count: 220

Filed under:
|
|

CSS3: Top align of list item.

See image as below. How can I align a blue arrow to align on top of a senetence of each list. I'm using jQuery 1.7 and it is for iOS (iPhone).

align top

ul.lists{ padding:0 0 15px 0;}
ul.lists li{ line-height:18px; border-bottom:1px #bfeaf0 solid; padding:6px 12px;       
background:url(../images/arrow_cyan.svg) no-repeat left; } /* no-repeat left top; */

I've tried to include a js as offset $("li:last").offset({ top: -15 }); but it did not work properly because I don't know how to move all blue arrows to align each list even the sentence might might run into more than one line.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css3