Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8770021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:28:28+00:00 2026-06-13T17:28:28+00:00

I added a border radius to my users Gravatar image and made sure to

  • 0

I added a border radius to my users Gravatar image and made sure to add the correct CSS for chrome and safari extensions but the image does not fill in the entire circle all the way. It however displays in Firefox correctly. Here is my CSS along with some images of the problem.

.gravatar{float: left; text-align: center; 
margin-top:1px; border:2px solid white;background-color:#ffffff;-webkit-border-radius:55%;-moz-border-radius:55%;border-radius:55%;box-shadow:0 0 10px rgba(0,0,0,0.3);
height: 38px;
width: 38px;
}

enter image description here
enter image description here

The only other mention of gravatar in the CSS is

.gravatar {
    padding: 0px;
    display: inline;

}

in my Bootstrap.min.css

I am calling the image from Gravatar by PHP

<a href="users.php?uid=<?php echo $row['user_id']; ?>"><?php echo $generic->get_gravatar($email, true, 200, 'mm', 'g', array('style' => '1')); ?> <?php echo $row['username']; ?></a><?php echo $admin . $restrict; ?>

Thanks for any solution you have.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:28:29+00:00Added an answer on June 13, 2026 at 5:28 pm

    From what I can tell, it’s not so much a problem of the image not filling the border radius, but rather one of how the browsers render the border. If you change the colour of the border to something different to the image, you can see that in fact, the border is drawn under the image when drawn in Chrome.
    A potential fix is to wrap the image with a div, and put the border on that div.

    I used a 16×16 image and got the same sort of result you did… At first. I wrapped it with a div and the problem goes away.

    .gravatar
    {
        float: left; 
        text-align: center; 
        margin-top: 1px; 
        background-color: #ffffff;
        -webkit-border-radius:55%;
        -moz-border-radius:55%;
        border-radius:55%;
        box-shadow:0 0 10px rgba(0,0,0,0.3);
        height: 38px;
        width: 38px;
    }
    .gravWrap
    {
        display:inline-block;
        border-radius: 55%;
        border: solid 2px blue;
    }
    
    <div class='gravWrap'><img class='gravatar' src='img/rss16.png'/></div>
    

    EDIT: You could output that markup like so:

    <a href="users.php?uid=<?php echo $row['user_id']; ?>"><div class='gravWrap'><?php echo $generic->get_gravatar($email, true, 200, 'mm', 'g', array('style' => '1')); ?></div> <?php echo $row['username']; ?></a><?php echo $admin . $restrict; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

JSplitPane seems to add a border to any Component added to it. This is
I added 1 pixel border to the image. At the same time I am
So I have a div and I added a background image via CSS. I
I am trying to configure a CSS-based drop-down menu. I have added a border
I added a bottom bar on NSWindow in IB by select Content Border-Large Bottom
I added an event handler to the WebClient's DownloadProgressChanged event, but it never seems
<div style=width:100%;background-color: #61b832;border-radius: 10px;color:white;text-align: center>Videos List</div> <table style=width:100%;id=videoTable> <c:forEach items=${requestScope.userInfo.videoList}var=videovarStatus=0> <script> var fullvideoUrl='<c:out value=${video.videoUrl}></c:out>';
Hello I use this code for toggle some css properties: $(document).ready(function() { $('li#last').toggle(function(){ $(this).css({border-bottom:
I have a view privacy policy. I added the opacity for my div but
I am trying to add border in two pivot items. When my border is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.