CSS triangle containing text
For your plan B (to center the text within the triangle both vertically and horizontally), which I prefer as solution, you could add this css rule: .up p { text-align: center; top: 80px; left: -47px; position: relative; width: 93px; height: 93px; margin: 0px; } Try it here: .up { width: 0px; height: 0px; border-style: inset; … Read more