@SoyRandy708
Posted
Agrega un max-width en lugar de solo width, para que en pantallas menores del 320px tambien quede centrada la informacion y no se haga un scroll horizontal
@SoyRandy708 Hi. Thanks for the suggestion. I tried using max-width instead of width, but I couldn't figure out how to make it work with the vertical centering trick I'm using.
I didn't realize I could use width and max-width simultaneously. I'll try that.
I would really like to know the solution to horizontal and vertical centering + max-width (without using media queries or more modern css features like flexbox)
@SoyRandy708
Posted
@Paul-Andre Pues lo mejor para alinearlo vertical y horizontalmente al mismo tiempo y para que el contenido quede siempre en el centro seria Flex la verdad por que hay otras maneras como poner en la tarjeta padre
margin:0 auto
Pero eso solo seria horizontalmente y ya para hacerlo verticalmente seria algo mas complejo y dependeria de cosas como el tamaño de la pantalla asi que no se veria completamente bien y lo mejor seria Flexbox