WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Images left - not smilies (6 posts)

  1. pizzaman
    Member
    Posted 7 years ago #

    In a post, I have images float left with text wrapping using css. Problem is my smilies end up doing the same thing. Is there a way to EXCLUDE just the smilies from floating?

  2. Kafkaesqui

    Posted 7 years ago #

    Emoticon images are given a class of 'wp-smiley' -- so you can add to your stylesheet something like:

    img.wp-smiley {
    float: none;
    }

  3. pizzaman
    Member
    Posted 7 years ago #

    Thanks Kaf. I've never seen that class documented.

  4. Kafkaesqui

    Posted 7 years ago #

    Good point. I'll see about adding something on it to the Using Smilies doc.

  5. xiaolin
    Member
    Posted 7 years ago #

    i have same problem but with border css. all images use css to display border and problem smilies end up doing the same thing.is there any way to EXCLUDE the border for smilies?
    i have tried something like:
    .wp-smiley {
    border: 0pt none;
    margin: 0px;
    padding: 0px;
    vertical-align: middle;
    }

    but it doesn't work

    can someone tell me how to solve? thankyou very much

  6. pizzaman
    Member
    Posted 7 years ago #

    If all you're worried about is how the smileys appear in the content of your posts, use:

    .storycontent .wp-smiley {
         border: 0;
     }

    This assumes .storycontent is the class you use for the content of your posts.

Topic Closed

This topic has been closed to new replies.

About this Topic