get_avatar() returns image with margin-bottom

by richards   Last Updated August 08, 2017 11:08 AM

Hi completely new to WordPress. I'm trying to add avatars to the page, and following the guide, I'm using get_avatar() function to achieve this. The avatar can be displayed, but I'm not sure why there is always a 10px bottom margin for them. Is there a way to resolve this?

Tags : avatar


Answers 1


Just overrule the margin bottom in your CSS? I have never used get_avatar();, so I have no idea what class(es) it uses, but just add .avatar_class_name { margin-bottom: 0; } and it should work.

If it doesn't, try adding !important after the 0.

Rvervuurt
Rvervuurt
August 08, 2017 10:52 AM

Related Questions



Updated avatars on the top. Is it even possible?

Updated January 21, 2018 13:08 PM

Prompt users to Upload Avatar on Registration

Updated November 09, 2017 18:08 PM

How to restore $args for get_avatar custom "class"?

Updated November 30, 2017 11:08 AM

Alternative to using get_avatar function?

Updated May 05, 2018 09:08 AM