N
N
neulwert2020-04-16 16:02:41
css
neulwert, 2020-04-16 16:02:41

How to center align without relative/absolute?

Here is my code: https://jsfiddle.net/h5yox1r0/6/
In the css code, I marked the necessary place with the comment /* cards */

I need to put the text in the center of the blue element and clean up the pink background so that it wraps around the text. Also, when you enter text, no matter how big it gets, it should stick to the center and be evenly distributed. How to do it without using relative/absolute?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
TostPOST, 2020-04-16
@neulwert

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question