A
A
angry_yum2018-02-21 14:54:32
css
angry_yum, 2018-02-21 14:54:32

What's the best way to center text?

Good afternoon.
I have a slick slider. there is a picture in it and 2 lines of text are inserted, how can I make sure that when the screen width changes, the text always remains in the center? 5a8d5d98e5b08049318195.png
at first I thought through position left / top, but then I realized that this was somehow not right.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
NaN, 2018-02-21
@angry_yum

https://codepen.io/ViktoriaKorneva/pen/OQZxYm
Read: https://habrahabr.ru/post/313938/

K
Konstantin Kitmanov, 2018-02-21
@k12th

Here is a comprehensive guide: https://css-tricks.com/centering-css-complete-guide/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question