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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:38:12+00:00 2026-06-04T14:38:12+00:00

How to make this button is CSS with Angled , Drop shadow, Inset shadow

  • 0

How to make this button is CSS with Angled , Drop shadow, Inset shadow with flexibility in width?

enter image description here

I’ve tried to make it here http://jsfiddle.net/jitendravyas/6RsnN/ but don’t how to give angle to it and how to create cut-out border around it.

And button should be flexible in width.

I’m only making this for iphone so full CSS3 is allowed.

  • 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-04T14:38:13+00:00Added an answer on June 4, 2026 at 2:38 pm

    The final result is:

    pure css blue button http://img832.imageshack.us/img832/8258/664d7b5656434db68cbee8b.png

    Demonstration of flexibility:

    enter image description here
    Although I tried to make a button like in the picture, but some parts may not be the same. Would consider it a proof of concept.

    This button can be pure CSS only with a lot of extra markup with this markup:

    <a class="btn">
        <span class="triangle"></span>
        <span class="btn_inner">
            <span class="triangle"></span>
            Back
        </span>
    </a>
    

    The main trick for creating triangles with box-shadow includes several steps:

    • Step 1. Create element ‘.triangle’ – it will be a wrap for real triangle.

    • Step 2. Apply position: absolute;, fix its width and height:
      red background-color is onle for demo
      step 4

    • Step 3. Create big square element ‘.triangle::before’ — it will be ‘real’ triangle after step 6

    • Step 4. Turn it 45 degrees (transform: rotate(45deg)).

    • Step 5. Add box-shadow.
      The result after step 3 is:
      step3

    • Step 6. Add overflow: hidden; Ta-dum!
      step 5

    On .tag_inner use the same trick, but box-shadow should be not inset but normal.

    Notice, that if you will use this trick always check what vendor prefixes must be used and place property without prefix on the last place.

    Update: Make markup more semantic — only one element for triangle trick.

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

Sidebar

Related Questions

I used sliding doors technique, explained here: http://www.oscaralexander.com/tutorials/how-to-make-sexy-buttons-with-css.html With only one exception, that I
I was wondering how to make a button like this: http://i43.tinypic.com/e21b7.png The main problem,
How to make what is this? button like those in top-right corner of dialogue
How can I make this input transparent? <input type=text class=foo> I've tried this but
I have a css transform that happens when a button is clicked shown here
I want to make a button like this. As you can see, there is
Is there a way to make a Radio Button enabled/disabled (not checked/unchecked) via CSS?
To make this more clear, I'm going to put code samples: $file = fopen('filename.ext',
I make this program :: #include<stdio.h> char *raw_input(char *msg); main() { char *s; *s
I make this php program to access mysql data foreach ($arrayOfID as $ID) {

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.