I've seen on several blogs gravatars with drop shadow etc......Can someone give me an example on how to accomplish this? Thanks.
I've seen on several blogs gravatars with drop shadow etc......Can someone give me an example on how to accomplish this? Thanks.
There is a good example at http://www.rehanalvi.com
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;
}
thank so much. I have had a graphic already for the default. Thanks again!
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?
ok, I added the css to the style sheet. Nothing changed???
You need to set the code to put the gravatar in your comments - with a '<div class="grav">` in the comments.php.
This topic has been closed to new replies.