Make text in the middle of CSS shapes

Viewed 1111

.myButton {
  float: right;
  border-top: 40px solid pink;
  border-left: 40px solid transparent;
  border-right: 0px solid transparent;
  width: 25%;
}
<div class="myButton">
  Submit
</div>

The above is my code. As you can see I want to design a shape like the image below but I want the word Submit to be in the center but it is pushed down. Anyone know a solution?

enter image description here

2 Answers
Related