html - Arrow with incomplete border -


arrow incomplete border

how make arrow on left side of white div. here css have tried makes 1 color border.

.white-box{         padding: 20px;     background: #fff;   }   .white-box:after,white-box:before{     right: 100%;     top: 50%;     border: solid transparent;     content: " ";     height: 0;     width: 0;     position: absolute;     pointer-events: none;   }   .white-box:after {     border-color: rgba(136, 183, 213, 0);     border-right-color: #88b7d5;     border-width: 30px;     margin-top: -30px; } .white-box:before {     border-color: rgba(194, 225, 245, 0);     border-right-color: #c2e1f5;     border-width: 36px;     margin-top: -36px; } 

with inline svg , path element pretty simple:

svg{    width:30%; height:auto;    display:block;  }
<svg viewbox="1 0 5 10">    <path d="m5 3 v1 l2 5 l5 9 v7" stroke="grey" stroke-width="0.5" fill="#fff"/>  </svg>


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -