WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Short gravatar question (2 posts)

  1. ThorHammer
    Member
    Posted 1 year ago #

    Hello, I am using this to get the users gravatar:
    <?php print $post->user_avatar; ?>
    I have wrapped this inside a style forcing the gravatar to be resized to height and width 50px, the width is OK, but the gravatars image won't downscale to 50 px. Why?
    Here is the css I used to wrap the gravatar:

    .lentryavatar {
    width:50px;
    height:50px;
    background-color:#ffffff;
    float:left;
    padding-bottom:35px;
    
    }

    Any suggestions?

  2. ThorHammer
    Member
    Posted 1 year ago #

    Never mind, I solved it...the avatar need its own avatar-class.

Topic Closed

This topic has been closed to new replies.

About this Topic