Title: Gravatar styling?
Last modified: August 18, 2016

---

# Gravatar styling?

 *  [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/)
 * I’ve seen on several blogs gravatars with drop shadow etc……Can someone give me
   an example on how to accomplish this? Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Thread Starter [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/#post-158471)
 * There is a good example at [http://www.rehanalvi.com](http://www.rehanalvi.com)
 *  [Cyndy Otty](https://wordpress.org/support/users/ceo/)
 * (@ceo)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/#post-158475)
 * Here’s the code I used in my CSS for the drop shadow effect – you’ll have to 
   make your own graphic for whatever size gravatars you use. Hope this helps.
 * `.grav
    { margin: -5px 3px 0px -5px; float: left; width: 90px; height: 90px; 
   padding: 7px !important; border: 0 !important; background: transparent url(/images/
   grav.png) 10px 10px no-repeat; } .grav img { width: 80px; height: 80px; padding:
   0 !important; border: 2px solid #FFF !important; }
 *  Thread Starter [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/#post-158481)
 * thank so much. I have had a graphic already for the default. Thanks again!
 *  Thread Starter [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/#post-158485)
 * I just add this to the css and its good to go? Do I need to add anything to the
   comment section where I placed the gravatar?
 *  Thread Starter [7milesdown](https://wordpress.org/support/users/7milesdown/)
 * (@7milesdown)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/#post-158500)
 * ok, I added the css to the style sheet. Nothing changed???
 *  [Cyndy Otty](https://wordpress.org/support/users/ceo/)
 * (@ceo)
 * [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/#post-158576)
 * You need to set the code to put the gravatar in your comments – with a ‘<div 
   class=”grav”>` in the comments.php.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Gravatar styling?’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [Cyndy Otty](https://wordpress.org/support/users/ceo/)
 * Last activity: [21 years, 2 months ago](https://wordpress.org/support/topic/gravatar-styling/#post-158576)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
