1

Him

I am trying to create an arrow pointing left but with a grey border.

So far I just have a grey arrow.

Would anyone have an idea on how I can do that?

I have attached a picture of what i mean.

Thank you in advance!

.tri {

    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px;

}

.tri{
    border-color: transparent #ccc transparent  transparent;

}


<div class="tri"></div>

enter image description here

json2021
  • 2,146
  • 2
  • 14
  • 28

1 Answers1

0

Try something like below:

.box {  
  width: 50px;
  height: 150px;
  border: solid 1px gray;
  border-radius: 5px;
  margin: 20px 0 0 100px;
  position: realtive;
  
  }

.box:after, .box:before {
  content: "\f0d9";
  font-family: fontAwesome;;
  top: 40%;
  left: -12px;
  height: 50px;
  width: 50px;
  font-size: 36px;
  color: gray;
  position: relative;
  
  
  }

 .box:after {
   left: -23px;
   color: white;
   
   }
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet"/>



<div class="box"></div>
Sleek Geek
  • 4,638
  • 3
  • 27
  • 42