Put text directly to the left of an <LI>
Posted
by Horace Loeb
on Stack Overflow
See other posts from Stack Overflow
or by Horace Loeb
Published on 2010-04-23T05:02:08Z
Indexed on
2010/04/23
5:43 UTC
Read the original article
Hit count: 191
I have a list of songs, and I want to put the word "New!" to the left of the new songs like this:
How can I do this so that all the songs line up? I.e., I want the names of songs that aren't new to line up with the names of songs that are new, not with the start of the word "New"
Note that this is trivial if "New!" is an image. I.e., I set the image as the background-image of the <li>
and give it some padding-left
© Stack Overflow or respective owner