WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't change size of gravatar w/ CSS (3 posts)

  1. jmeeter
    Member
    Posted 3 years ago #

    If you go to http://electrojams.com/author/admin/ you will see that the gravatar is 55x55 px... I CANNOT seem to get this to change to 150 like I want. Do you have any tips?

  2. jmeeter
    Member
    Posted 3 years ago #

    Nevermind, I fixed it!

  3. skitelluride531
    Member
    Posted 3 years ago #

    The height and width is being set in the HTML

    <div style="float:right;"><img alt='' src='http://www.gravatar.com/avatar/68f9ac8e4072d190f55933b97a98611a?s=100&d=http%3A%2F%2Fwww.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D100&r=PG' class='avatar avatar-100 photo' height='100' width='100' /></div>

    Either remove that, or change it to the appropriate width.

    To do this with CSS:

    .avatar {
    	border:1px solid #bbb;
    	margin:0px 10px 0px 0px;
    	float:left;
    	padding:2px;
    width: 150px;
    	}

    However, I don't believe, the CSS will work until you remove the "height" and "width attribute from the <img> tag.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags