I create triangle button at header of my page, and i would like to put text in button.
Now text is outside button.
My code:
.collapsible {
position: absolute;
left: 40%;
}
.triangle {
font-size: 22px;
color: #000;
width: 190px;
height: 140px;
border-top: solid 140px #2b2b2b;
border-left: solid 140px transparent;
border-right: solid 140px transparent;
border-bottom: transparent;
background-color: transparent;
}
<button class="collapsible triangle" id="collapse">Some content</button>
So as u can see text is outside of buuton, how it's possible to set inside button?