I’m styling an ordered list 1, 2, 3, 4 etc…
Is there a way to place an image behind each number, so the 1, 2, 3, 4 appear on top of it?
eg:
image[1.] List Item 1
image[2.] List Item 2
image[3.] List Item 3
image[4.] List Item 4
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, another way to do it would would be to add the image to each list item then shift its position. See fiddle. I used divs instead of images because it was easier. However, this method should be tested across different browsers to make sure it doesn’t look weird.
css: