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

  • Home
  • SEARCH
  • 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 8421213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:05:20+00:00 2026-06-10T03:05:20+00:00

I am using border-radius property to acheive rounded corners. But I am not sure

  • 0

I am using border-radius property to acheive rounded corners. But I am not sure how to get rounded corners of this shape. I tried giving same dimensions from either sides but they just dont give me the exact shape. Am I missing some CSS3 property here.

enter image description here

Just wondering if clip css property is the answer.

UPDATE:

http://jsfiddle.net/YWnzc/136/

  • 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-10T03:05:22+00:00Added an answer on June 10, 2026 at 3:05 am

    Demo

    #player {
      margin: 32px;
      position: relative;
      width: 400px;
      height: 250px;
      background-color: #222;
    }
    
    #inner {
      transform: rotate(45deg);
      background-color: silver;
      width: 100px;
      height: 100px;
      top: 20px;
      left: -50px;
      position: relative;
      border-radius: 20px;
    }
    
    #outer {
      position: absolute;
      top: 50px;
      left: 165px;
      width: 70px;
      height: 140px;
      overflow: hidden;
    }
    <div id="player">
      <div id="outer">
        <div id="inner"></div>
      </div>
    </div>

    This should produce:

    enter image description here

    The effect is achieved by creating a square, rotating it with a CSS transform, rounding the corners, and clipping it with an outer box. The inner element can be adjusted as desired, so it is somewhat flexible.

    http://css3shapes.com/ has some nice examples (note the heart at the bottom of the page)

    Alternatives

    SVG images support shapes of this type and are supported in all modern browsers. Simple SVGs can be coded by hand as XML, and there are a variety of free/paid editors for working with them.

    See also: Raphaël, a library for working with vector graphics on the web

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

Sidebar

Related Questions

I have a fluid-width div with rounded corners using the border-radius, as well as
I'm trying to run rounded corners on <= IE8 using border-radius.htc located here .
I am using the following for achieving rounded corners: -moz-border-radius: 10px; border-radius: 10px; -webkit-border-radius:
I'm trying to make a rounded button using -webkit-border-radius This gives me this button
I'm using this CSS: #main{ border-radius: 50px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; -webkit-border-radius: 50px; -webkit-border-bottom-right-radius:
I've made a site using this border radius code: http://code.google.com/p/curved-corner/ I'm referencing to url(border-radius.htc)
Im using jQuery-cycle to power one of my slideshow and a border-radius property applied
I want to make the following shape using divs and border radius, with fall
Hi! I have notice that some sites are using -moz-border-radius to get round cornors
I'm using the CSS3Pie htc file to enable border-radius in IE8, but I'm getting

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.