Answer the question
In order to leave comments, you need to log in
Text box is centered, but text inside the box is left-aligned?
How to implement this block:
The text block is centered vertically and horizontally, but the text inside the block is left-aligned.
At the same time without setting the width in advance?
The text should be able to take up 100% of the parent's width, there is an implementation (by Ankhena ) but with the option of 50% of the width:
https://jsfiddle.net/gsukrbkf/4/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question