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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:41:04+00:00 2026-05-24T17:41:04+00:00

Trying to add rounded corners to images, that also have a border. Came up

  • 0

Trying to add rounded corners to images, that also have a border.

Came up with the following:

http://jsfiddle.net/tgqBG/

But it doesn’t look good at all with the whitespace below the image, and the fact that the corners of the border and image don’t match. Am I doing something wrong?

Thanks,
Wesley

  • 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-24T17:41:05+00:00Added an answer on May 24, 2026 at 5:41 pm

    Add overflow:hidden; to .thumb_container, add vertical-align:bottom; to the image.

    You can remove a lot of the other values, here is an updated jsfiddle:

    http://jsfiddle.net/tgqBG/12/

    Another way of doing this (supported by more browsers) is showing the image through background-image. In my comment I said this would pose a problem because the element needs fixed dimensions, however I just realized this can easily be fixed by also putting the image in there but hiding it.

    http://jsfiddle.net/tgqBG/51/

    This doesn’t work without float because it will get a width of 100%. This is because of div‘s automatic property to be rendered as a block.

    To fix this, change div to span and then add display:inline-block;.

    http://jsfiddle.net/tgqBG/52/

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

Sidebar

Related Questions

I have this table and was trying to add rounded corners to it, but
I have a task - add round corners to HtmlPanelGrid. Now I am trying
I ran into this problem when trying to add rounded corners to some divs
I'm trying to create a Win32 window that has rounded corners and is resizable
I am trying to add CSS3 based rounded corner support in IE7 and IE8
i'm trying to add alpha effect for my image. the image is in rounded
I'm trying to display a table where each table row has a rounded border.
I am trying add two columns in a text file that are seperated by
I have a simple mail system developed with G.W.T and i am trying add
Trying to add django-registration to my app. I have installed setup tools to use

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.