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 6090161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T12:10:57+00:00 2026-05-23T12:10:57+00:00

Let assume that I have image with border: 1 px solid black because i

  • 0

Let assume that I have image with border: 1 px solid black because i want it to have border. But for more i want rounded corners so i give border-radius: 10px. But this now looks bad because corners don’t have border. Is there possibility in html and css to do something which give borders to corners or answer is maybe somewhere in (for example) in jQuery?

  • 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-05-23T12:10:57+00:00Added an answer on May 23, 2026 at 12:10 pm

    sure just put the border on too.. and where there’s a background color you can use an image, however IE support will be non-existant, but you might try CSSPie for enhancement for it. I think also some browsers do have a problem clipping on image to the round corners but am not too sure on overall support or fixes, perhaps putting the border on a parent div then rounding the image inside it might give a neat effect?

    Example Fiddle

    div, img {
        -moz-border-radius: 10px;
        -webkit-border-radius: 10px;
        border-radius: 10px;
        border: 1px solid #000;
        background: #0f0;
        width: 200px;
        margin: 50px;
        text-align: center;
        line-height: 40px;
    }
    

    HTML:

    <div>rounded with border</div>
    <img src="http://placekitten.com/100/100/" alt="">
    

    Update: Webkit browsers do have problems with this if it’s actually an image that needs rounding with borders, here’s one workaround that seems to help:

    New Example Fiddle

    (view with webkit to see difference between second and third images)

    HTML:

    <div class="ri"><img src="http://placekitten.com/100/100/" alt=""></div>
    

    CSS:

    div {
       margin: 50px;
       text-align: center;
       line-height: 40px;
       width: 100px;
       height: 100px;
    }
    
    .ri {
       -moz-border-radius: 10px;
       -webkit-border-radius: 10px;
       border-radius: 10px;
       -webkit-background-clip: padding-box;
       border: 1px solid #000;
    }
    
    .ri img {
       display: block;
       -moz-border-radius: 10px;
       -webkit-border-radius: 10px;
       border-radius: 10px;
       -webkit-background-clip: padding-box;
    }
    

    the background-clip is supposed to help the background clip to the padding-box, which should in theory stop a background-image or color from extending into the border, but in itself it doesn’t appear to work very well, so I nested the image and rounded both it and the parent div and then put the border onto the parent div, Webkit was happy 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's assume that we have a vector like x = -1:0.05:1; ids = randperm(length(x));
(Let's assume that I have good reasons not to remove my NSAssert() checks in
I have a question regarding static function in php. let's assume that I have
Let's say we have two objects. Furthermore, let's assume that they really have no
Let's assume I have a model called product. Let's assume that product has three
So let's assume I have a class named ABC that will have a list
Let's assume I have a main script, main.py, that imports another python file with
Let's assume that I have following models: class ScoutBook(models.Model): troop = models.ForeignKey('Dictionary', limit_choices_to={'type' :
Let's assume that we have a simple matrix 3rows x 7cols. The matrix includes
Let's assume that I have a table in a mysql database as follows, date

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.