WordPress.org

Ready to get started?Download WordPress

Forums

ol decimal and than image (4 posts)

  1. Dydric
    Member
    Posted 9 years ago #

    is it possible to create (in css) a layout for my comments like this:
    1. (img) .....
    2. (img) .....
    3. (img) .....

    I tried this code but it faild:
    ol {
    list-style: decimal url(img/comment.gif);
    }

    someone a solution for me?

  2. philpeeps
    Member
    Posted 9 years ago #

    add a background image to your ol li style and offset the text with some padding so the image is visible...

  3. Dydric
    Member
    Posted 9 years ago #

    thx for the tip

  4. Dydric
    Member
    Posted 9 years ago #

    the background is displayed ones with this:

    ol {
    list-style: decimal;
    background-image: url(img/comment.gif);
    background-repeat:no-repeat;
    }

    and i want it to display the image before every decimal...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.