I have a css class that has a pseudo :before class attached to it. The :before class is just a border but it is overlapping the text. I have tried padding but it's still overlapping. Here is css code
.chevron {
width: auto;
min-width: 100px;
position: relative;
background: #d1dce6;
text-overflow: ellipsis;
height: 40px;
max-height: 40px;
}
.chevron:before {
content: "";
position: absolute;
left: 0;
bottom: 0;
width: 0;
height: 0;
border-left: 20px solid white;
border-top: 20px solid transparent;
border-bottom: 20px solid transparent;
}
How can I get some space between the white border (:before) and text
Edit 1: The css class is applied to a element. Padding-left doesnt work.
<th class="chevron" v-for="p in joinTo">{{p.description.trunc(30)}}</th>