text width
Why doesn't the auto margin work if I put spaces between the text?
2 Replies
margin
works around an element, not inside. margin: auto
only works in combination with position
or a display: grid/flex
.
If that didn't help, feel free to post additional information, or create codepen/stackblitz/etc. to show your problem.Please read #How To Ask Good Questions. As of right now, your question is too vague for anyone to provide a concrete answer.