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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:01:59+00:00 2026-05-28T07:01:59+00:00

Is it possible to draw an arrow that has semi-transparent border around it just

  • 0

Is it possible to draw an arrow that has semi-transparent border around it just using css?
enter image description here

Heres a fiddle of my effort so far:
http://jsfiddle.net/calebo/fBW4u/

CSS:

.ui-overlay {
  padding-bottom: 10px;   
  position: relative;
}
.ui-overlay-content { 
  background: #999;
  color: #000;
  padding: 8px;
  border-radius: 4px; 
  border: 5px solid rgba(0, 0, 0, 0.2); 
  background-clip: padding-box; 
  height: 100px;
  width: 200px;
}
.arrow {
  border-color: #999 transparent transparent; 
  border-style: solid; 
  border-width: 10px 10px 0; 
  bottom: 5px; 
  left: 15px; 
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden; 
}
  • 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-28T07:02:00+00:00Added an answer on May 28, 2026 at 7:02 am

    This still needs some work, but here’s the general idea:

    Use a pseudo-element, rotate it 45deg and apply the styling to that:

    .arrow {
        bottom: -25px; 
        left: 30px; 
        width: 40px;
        height: 40px;
        position: absolute;
        overflow: hidden;
    }
    .arrow:after {
        content: ' ';
        display: block;
        background: red;
        width: 20px;
        height: 20px;
        transform: rotate(45deg);
        position: absolute;
        top: -19px;
        left: 3px;
        background: #999;
        border: 5px solid rgba(0, 0, 0, 0.2);
        background-clip: padding-box;
    }
    

    Here’s the fiddle: http://jsfiddle.net/yZ3vB/


    The problem with this is that the borders overlap, making it darker by the edges.

    This could probably be remedied by adding another element though.

    Update: Yes! Here you go: http://jsfiddle.net/sJFTT/


    Update 2: You don’t even need that additional element. You can use the pseudo element from the main box:

    .ui-overlay-content:after {
        content: ' ';
        border-width: 13px;
        border-color: #999 transparent transparent;
        border-style: solid;
        bottom: -10px;
        left: 30px;
        width: 0;
        height: 0;
        position: absolute;
    }
    

    Here’s the fiddle: http://jsfiddle.net/6v9nV/


    Update 3: Actually, you can do all this with just a single element and no transform, by using both pseudo-elements – the before and the after:

    .speech-bubble {
        background: #999;
        background: linear-gradient(top, #444 0%,#999 100%);
        background-clip: padding-box;
        border: 5px solid rgba(0, 0, 0, 0.2);
        padding: 20px;
        width: 200px;
        height: 100px;
        position: relative;
    }
    .speech-bubble:before{
        content: ' ';
        border-color: rgba(0, 0, 0, 0.2) transparent transparent;
        border-style: solid;
        border-width: 17px;
        position: absolute;
        bottom: -39px;
        left: 16px;
    }
    .speech-bubble:after{
        content: ' ';
        border-color: #999 transparent transparent;
        border-style: solid;
        border-width: 13px;
        position: absolute;
        bottom: -26px;
        left: 20px;
    }
    

    Here’s the fiddle: http://jsfiddle.net/95vvr/


    P.S. Don’t forget the vendor prefixes in production!

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

Sidebar

Related Questions

Is it possible to draw a border around an Android TextView ?
is it possible to draw a line semi-transparent with image magick? i want to
Is it possible to draw overlapping semi-transparent (with a low alpha value) which will
Is it possible to draw border around a menu item in vb6?
Is it possible to draw circle using css only which can work on most
Is possible to draw a Shape that has a background made by slanted lines?
Is it possible to draw a road using bing maps js api? Ideally I
Is possible to draw a quad given its normal vector, a point that is
Is it possible to draw multiple lines with a single TLineSeries using TeeChart? I
Is it possible to draw a line chart with the standard deviation around the

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.