WordPress.org

Ready to get started?Download WordPress

Forums

List-Style on the right? (4 posts)

  1. Arash
    Member
    Posted 6 years ago #

    How can you add a List-Style disc or image on the right side of a text?

    How every I try it, the disc automaticly comes to the left of the text :(

    So how do you align List-Style to the right?

  2. kohaku
    Member
    Posted 6 years ago #

    Now, this is just code from my theme, but it should show you how to do it.

    ul ul li {
    height: 1%;
    list-style-type: none;
    margin: 0 0 5px 0;
    padding: 0 0 0 15px;
    background: url(img/icon-arrow.gif) no-repeat;
    line-height: 120%;
    }

    The bolded part is where you put the image. It floats to the left of the text.

  3. Arash
    Member
    Posted 6 years ago #

    Thank you Kohaku, my point is to have it float to the left.

    The only option I have found is to create a background image. But so far no sollution for a list-style.

    Thank you for your feedback.

  4. kohaku
    Member
    Posted 6 years ago #

    That way it does float left. I don't believe you can put an image in the list-style area. You have to work around the system.

    Putting list-style as none and signifying a background that doesn't repeat is, CSS-wise, the closest you can currently get to changing the image that shows next to list items.

Topic Closed

This topic has been closed to new replies.

About this Topic