
Design comparison
Solution retrospective
¿Qué fue lo que te resultó más difícil a la hora de construir el proyecto?
estaba utilizando align-items:center; en el Estilo.css y no me centraba verticalmente el componente, luego me di cuenta que el contenedor tenia que tener altura definida para poder moverlo.
¿De qué áreas de tu código no estás seguro? el estilo en los texto
¿Tiene alguna pregunta sobre las mejores prácticas?
si , sobre mover elementos, probablemente existan mejores practicas para hacerlo
Community feedback
- P@danielmrz-devPosted about 1 year ago
Hello @DavidRM077!
Your project looks great!
I have one suggestion for you to improve it even more:
- I noticed that your card is not vertically centered. Here's a very efficient way to place an element in the middle of the page both vertically and horizontally:
📌 Apply this to the body (in order to work properly, don't use position or margins):
body { min-height: 100vh; display: flex; /* it works with grid too */ justify-content: center; align-items: center; }
I hope it helps!
Other than that, great job!
Marked as helpful1 - @jcboteroPosted about 1 year ago
Hola David. Muy bien resuelto el challenge. Sobre posicionar/mover elementos, quizás lo que más me guste es usar el Flex-Box. No sé si lo usaste porque está caído el link de tu repositorio, pero sería algo así :
A tu contenedor principal, le pones = display: flex ; Justifiy-content : center
La segunda propiedad te da muchas más opciones, puede ser space-between si quieres que se separen a los largo del contener, o space-around para separarlos copando mejor los espacios, entre otras. También puedes organizar todo lo que está dentro del contenedor principal en formal de columna o filas. Es una gran herramienta para explorar
Es si, tengo cuidado en no usar mucho el margin para posicionar elementos. Es mejor usar en el width : vw, o sino el rem. Son más responsive y se adaptan mejor a diferentes tamaños de pantallas.
Espero te haya sido algo útil
Saludos!!
1
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord