I want to create arrow shape using CSS -- Please see screenshot -


i want create arrow shape css 1

screenshot

i want create next , previous post button this... please help

use pseudo element , css triangle :

.arrow-right,  .arrow-left {    position: relative;    display: inline-block;    height: 20px;    padding: 0 6px;    color: white;    background-color: #a5a5a5;  }  .arrow-right::after,  .arrow-left::after {    content: '';    position: absolute;    top: 0;    width: 0;    height: 0;    border-style: solid;  }  .arrow-right::after {    right: -10px;    border-color: transparent transparent transparent #a5a5a5;    border-width: 10px 0 10px 10px;  }  .arrow-left::after {    left: -10px;    border-color: transparent #a5a5a5 transparent transparent;    border-width: 10px 10px 10px 0;  }
<div class="arrow-right">lorem</div>  <br>  <div class="arrow-left">lorem</div>


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -