Css problems, how to avoid borders for smilies (3 posts)

  1. Kreativ
    Posted 9 years ago #

    My problm is that my images on post have a border, the CSS is like this:
    .postentry img {
    border: 5px solid #edf2ff;
    .postentry img:hover {
    border: 5px solid #efefef;

    It didn't have anytthing for the smilies, if I want to put one on the post it will have the border, so I search in others themes that have that and I found this:

    .postentry img.wp-smiley{
    padding: 0;
    border: 0;
    background: none;

    I add it but it doesn't working, who can help me?

    My other problem is that I would like to add an image for listings, instead of that ugly black point :)

  2. DianeV
    Posted 9 years ago #

    The CSS code looks okay (what you're looking for is the "border:none"), but you're going to have to do something a little extra when you use a smiley:

    <img src="path/to/smiley.gif" class="wp-smiley">

    That applies the wp-smiley class (CSS code) to the smiley image. Otherwise, the display will default to the bordered image.

  3. Kreativ
    Posted 9 years ago #

    My problem is fixed now, it took a while to work, but it worked.
    Who can help me with the listings dots?

Topic Closed

This topic has been closed to new replies.

About this Topic