If you use margin or padding to align the text, they also increase the size of your element if you know the model’s behavior as CSS, so if you align them using padding or margin make sure you use below
div { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
Although it will consider margin above from the outside, it will consider padding and border inside the element.
In addition, if you want to align only one word, the better to use the text-indent property, which will print your text to a certain px .
Demo
But this will only be the indentation of the 1st line, so if you have one word that is enough for your needs, but if you want to align several elements, then it is better to use span for each word and than indentation using padding
source share