Hi there guys. At Klayz.com we just published a new article divided on pages (using WordPress). In the first page we created a simple unordered list with all the anchors to the various article’s sections. This is the web page address:
Now, I was trying to add a simple icon to the left of the list items but I cannot figure how to do it. This is my actual CSS code for the list in that page:
What do you mean exactly with “albeit small pixies of it”?
I added list-style-position:inside but it’s added to the right of the texts. And I need it to the left.
I also tried varying from inside to outside. With outside it doesn’t seems to work at all, like before.
Strange, I can correctly see it from FireBug. Here are some screens:
Hi there Norman. I’m not sure if it will help but what if you change your ordered list to an unordered list? I’m not sure if an image makes sense for an <ol>
Yes, you’re right gandalf458. I changed from ol to ul.
The problem now is that I would still love and want to change that image’s position from right to left (where would have been the numbered and ordedred numbers).
Because you float the span (#toc span) then the list image is moved to the right because floats displace inline elements on the same line.
If you remove the float from #toc span then the list image will flip to the left. However it will have a dotted underline underneath it and it looks like you wanted to rub that out.
Therefore I suggest that you simply apply a background image to #toc span instead and remove the list-style-image which are troublesome at the best of times.