0

I have a shape been rendered using CSS. I want to add a black border(#000) on the shape created. Thanks for your help.

Codesandbox demo

.arrow-pointer {
  width: 150px;
  height: 50px;
  background: #32557f;
  position: relative;
  margin-left: 25px;
  color: #fff;
}

.arrow-pointer:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 25px solid #fff;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
}

.arrow-pointer:before {
  content: '';
  position: absolute;
  right: -25px;
  bottom: 0;
  width: 0;
  height: 0;
  border-left: 25px solid #32557f;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
}
<div style="display:flex">
  <div class="arrow-pointer"></div>
  <div class="arrow-pointer"></div>
</div>
isherwood
  • 58,414
  • 16
  • 114
  • 157
Erick
  • 1,098
  • 10
  • 21

0 Answers0