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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:04:01+00:00 2026-05-23T08:04:01+00:00

My designer has designed a border with a diamond shape on the border corners.

  • 0

My designer has designed a border with a diamond shape on the border corners. See image below.

Diamond Border

The way I’d go about achieving this would be to save the diamond shape as an image, create a 1px solid border and then place the diamond shape absolutely positioned on the four corners. While this works I’m sure there is a much smarter way to do this without the additional mark up.

Maybe using something like :after in css? How would I do this, or is there a better way? I need to have this compatible with IE8+ but if it works with IE7+ even better.

  • 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-23T08:04:01+00:00Added an answer on May 23, 2026 at 8:04 am

    For a solution that’s widely compatible, I think you should use four elements with position: absolute combined with position: relative and negative offsets:

    See: http://jsfiddle.net/M4TC5/

    @meo’s demo using transform: http://jsfiddle.net/M4TC5/2/
    (and my demo: http://jsfiddle.net/M4TC5/1/)

    That really just shows the concept, you can generate better transform code (that doesn’t look slightly “off” in IE) with this tool: http://www.useragentman.com/IETransformsTranslator/

    HTML:

    <div class="image">
        <span class="corner TL"></span>
        <span class="corner TR"></span>
        <span class="corner BL"></span>
        <span class="corner BR"></span>
        <img src="???" />
    </div>
    

    CSS:

    .image {
        position: relative
    }
    .corner {
        position: absolute;
        background: url(???);
    }
    .TL {
        top: -10px;
        left: -10px
    }
    .TR {
        top: -10px;
        right: -10px
    }
    .BL {
        bottom: -10px;
        left: -10px
    }
    .BR {
        bottom: -10px;
        right: -10px
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a streamwriter to log errors the way it has been designed (please
I have designed this gui in netBeans which has a canvas , a couple
The windows form that I designed has 1 label. The text of this label
A designer has given me a Silverlight child window that was designed in Expression
I know WF designer has re-hosting capability. Since it's WPF-based, I thought it might
I like Linq but find that once the designer has created my classes I
Several times throughout the course of our current project, the visual studio designer has
I am a junior web designer who has fair amount of knowledge in photoshop,
I’m working on an application which has been designed using n-tire application architecture .The
I am building a web-based application. The frontend has been designed in Sproutcore. For

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.