Vertical align on css

Hi i trying to put the text in the middle and i just cant i donw know why but just not working can someone help me??

I would give your .bienvenida

display: flex;
justify-content: center;
align-items: center;

This is the modern way of centering anything inside a div or a box. Justify-content will center horizontally and align-items will center it vertically.

Then you can wrap your h1 and p inside a div.

tank u, but the problem is that there is not lines between the H1, and P and put them in the same line

Yeah so that’s why I said

Then your line spacing will remain as you expected.

tank u for helping me!!!

1 Like