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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:37:58+00:00 2026-06-10T11:37:58+00:00

This is driving me nuts, I’ve seen it before but can’t replicate it or

  • 0

This is driving me nuts, I’ve seen it before but can’t replicate it or find it or any resources for it. What I am doing is a vertical ribbon with a leather texture and a “stitched pattern”. The way the stitches work is simple enough, inner divs with dashed borders, and even the ribbon shape is easy enough using the pseudo :after class, but combining the two is just not going to plan.

This is what I have for css that is working so far (it is all done with css minus the leather texture):

.wrapleather {
        width:100px;
        height:120px;
	    float: right;
	    margin-right:20px;
        background-image : url("leather.png");
        border-radius: 5px;
        -webkit-box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
        -moz-box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
        box-shadow: 0px 1px 10px rgba(0,0,0,0.5);
	    position:relative;
    }
    .wrapleather:after {
    	content: '';
        display: block;
        width: 0;
        height: 105px;
        position: absolute;
        top: 0;
        left: 0;
        border-width: 0 50px 15px 50px;
        border-style: solid;
        border-color: transparent transparent #cdc0a8;
	    position:absolute;
    	top:0;
    	left:0;
    }
    .wrapleather .outside {
    	width:90px;
    	height:110px;
        margin: 4px;
        border-radius: 5px;
        border: 1px dashed #aaa;
        box-shadow: 0 0 0 1px #f5f5f5;
    	}
    .wrapleather .inside {
        width:90px;
        height:110px;
        border-radius: 5px;
     }
<div class="wrapleather">
     <div class="outside">
       <div class="inside">
        <p class="font">Leather</p>
       </div>
     </div>    
  </div>

Additionally the shadow is remaining in a “square” format and not taking the shape of everything. To clarify I am not asking anyone to debug or anything like that, I am simply asking for alternative or further methods to be shared that could achieve the desired results, css is still something I am in the process of learning so any advice or anything of that nature that you could give would be appreciated, and if you need any additional info please let me know. Thanks!

  • 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-10T11:38:00+00:00Added an answer on June 10, 2026 at 11:38 am

    There is a way to do what you want with CSS only, but it won’t work on all browsers. If you want the best browser support, you should probably use an image.

    Here is a demo (you may have noticed I only use a single element, as you shouldn’t introduce extra markup just for styling): http://jsfiddle.net/joshnh/eUje5/

    HTML
    
    <div class="ribbon"></div>
    

    ​

    CSS
    
    .ribbon {
        background: #eee;
        border-left: 1px dashed #aaa;
        border-right: 1px dashed #aaa;
        border-radius: 5px 5px 0 0;
        box-shadow: 5px 0 0 #eee,
                    -5px 0 0 #eee;
        height: 120px;
        margin: 0 5px;
        position: relative;
        width: 90px;
        -webkit-filter: drop-shadow(0 2px 5px hsla(0,0%,0%,.5));
    }
    .ribbon:after,
    .ribbon:before {
        border-top: 15px solid #eee;
        content: '';
        height: 0;
        position: absolute;
        top: 100%;
        width: 0;
    }
    .ribbon:after {
        border-left: 50px solid transparent;
        right: -6px;
    }
    .ribbon:before {
        border-right: 50px solid transparent;
        left: -6px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is driving me nuts, I'm sure it's rather simple but can't get it
This is driving me nuts... I've seen a few posts on similar issues but
I've seen this asked in several ways but can't find an answer that works.
This is driving me nuts. FactoryGirl has stopped working, but I can't see why
This is driving me nuts. I can't seem to get the data template within
This is driving me nuts. I believe I asked this exact same question, but
This is driving me nuts. I've looked at all the relevant MSDN tutorials but
Alright, this is driving me nuts because my regex is working on Rubular, but
OK, this is driving me nuts. I'm sure it is trivial, but I've been
This is driving me nuts, I can't see the problem. Using jQuery (I'm stuck

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.