I have this simple HTML code (with Bootstrap) :
text to center
Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. 3 wolf moon officia aute
I just want to vertically center the text "text to center" in the div, keeping the border as it is in the exemple (no height decrease).
I have tried things such my-auto or align-items-middle, also read questions asked before, but without success.
If possible I don't want to add classes (use existing bootstrap).
解决方案
You can used Flex box predefine class in Bootstrap for that:
text to center
ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
For Information you can read here.