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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T01:57:18+00:00 2026-05-30T01:57:18+00:00

I wish do a rectangle in CSS with graceful degradation to work in IE8+.

  • 0

I wish do a rectangle in CSS with graceful degradation to work in IE8+. And work fine in Chrome, Firefox and Safari browsers.

Supposed HTML Tag:
<span class=”tag tag-gray”>FRETE GRÁTIS</span>

See sample:
http://imageshack.us/photo/my-images/850/roundcutcorner.png/

Thank’s

  • 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-30T01:57:19+00:00Added an answer on May 30, 2026 at 1:57 am

    Pure CSS Solution

    Here’s the jsFiddle example with comparison to original image and the CSS:

    span.tag {
     margin:4px 5px;
     position:relative;
     border-radius:5px;
     background:red;
     display:inline-block;
     padding:.6em 4.5em;
     text-align:center;
    }
    span.tag-gray {
     background: #7c7d80; /* Old browsers */
     background: -moz-linear-gradient(top, #7c7d80 0%, #7c7d80 50%, #66686b 51%, #66686b 100%); /* FF3.6+ */
     background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#7c7d80), color-stop(50%,#7c7d80), color-stop(51%,#66686b), color-stop(100%,#66686b)); /* Chrome,Safari4+ */
     background: -webkit-linear-gradient(top, #7c7d80 0%,#7c7d80 50%,#66686b 51%,#66686b 100%); /* Chrome10+,Safari5.1+ */
     background: -o-linear-gradient(top, #7c7d80 0%,#7c7d80 50%,#66686b 51%,#66686b 100%); /* Opera 11.10+ */
     background: -ms-linear-gradient(top, #7c7d80 0%,#7c7d80 50%,#66686b 51%,#66686b 100%); /* IE10+ */
     background: linear-gradient(top, #7c7d80 0%,#7c7d80 50%,#66686b 51%,#66686b 100%); /* W3C */
     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#7c7d80', endColorstr='#66686b',GradientType=0 ); /* IE6-9 */
     color:#fff;
     font-family:sans-serif;
     font-size:.7em;
     font-weight:bold;
    }
    span.tag:after {
     /* right, height, and width should equal eachother */
     right:-18px;
     height:18px;
     width:18px;
     content:".";
     display:block;
     position:absolute;
     top:0;
     font-size:0;
     overflow:hidden;
     background:#fff;
     -moz-transform-origin:0 0;
     -moz-transform:rotate(-45deg) translate(-50%, -50%);
     -webkit-transform-origin:0 0;
     -webkit-transform:rotate(-45deg) translate(-50%, -50%);
     transform-origin:0 0;
     transform:rotate(-45deg) translate(-50%, -50%);
    }
    

    Assuming the HTML is:

    <span class="tag tag-gray">FRETE GRÁTIS</span>
    

    Gotchas

    • To get it to work with older (and other) browsers, you may want to add the prefixed versions of border-radius
    • To get it to work in non-webkit/moz browsers, simply add the corresponding prefixed versions of transform and transform-origin
    • The “cut” cannot be transparent, but you can make it appear to be by setting it to the same color(s) as the background
    • Due to using border-radius, you cannot set div.cut‘s overflow to hidden as the div‘s background will bleed through along the outer edge of the radius, so you have to make sure you have enough room outside of the element to avoid covering other elements/text. A workaround is to set the background to a gradient and have the outer edge be transparent (aka right side)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wish I were a CSS smarty .... How can you place a div
Lets say i have a rectangle Now i wish to apply it transformations such
Wish you all are doing fine at the start of a new year I
I wish to print a document by passing custom html code. The non-working code
I wish Subversion had a better way of moving tags. The only way that
I wish to know all the pros and cons about using these two methods.
I wish to implement a 2d bit map class in Python. The class would
I wish to implement my software on a shareware basis, so that the user
I wish to search a database table on a nullable column. Sometimes the value
I wish to use xml and xsl to generate controls on an asp.net page.

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.