When I make a badge/button etc in css. I usually position the text inside the element using padding. I have now come across a situation where this doesn’t work.
The p-tag has the height 50px. This means that if I add padding the total height will be to large. Is there some other way of changing the texts position inside the tag?
Do you need to move text vertically or horizontally? If horizontally you can use text-indent.
If you want to position the text in the vertical center of your container and you only have one line of text you can set the line-height property to be the same as the height of the element.
Provide exact details or code sample and I will try to help.