Profile Card Component - HTML/CSS

Solution retrospective
Probably, the primarily tricky part for me was the background. I tried my best to position them so close to the final design.
If you find a better solution, please help me I really have been improving with all your knowledge. Thanks!
(English it's not my native language, sorry for the misspelling).
Please log in to post a comment
Log in with GitHubCommunity feedback
- @MelvinAguilar
Hola @Rysth👋, ¡buen trabajo al completar este desafío! 🎉
Puede usar las propiedades de "background" de CSS para establecer los 2 circulos en el fondo en lugar de la etiqueta <img>:
body { . . . background-color: var(--primary-dark-cyan); background-image: url(./images/bg-pattern-top.svg), url(./images/bg-pattern-bottom.svg); background-repeat: no-repeat, no-repeat; background-position: right 52vw bottom 35vh, left 48vw top 52vh; }
background-color
Establece el color del fondobackground-image
Establece la imagen del fondobackground-repeat
Establece si una imagen de fondo se repetirá a lo largo de los ejes horizontal y vertical, o no se repetirá en absoluto.background-position
Establece la posición inicial de una imagen de fondo. More information- También puede especificar el tamaño de la imagen de fondo con "background-size"
La propiedad
background
es una abreviatura de todas las propiedades mencionadas anteriormente, pero por ahora. Es mejor entenderlos por separado.La
background-position
para mí funcionó con las unidades vw (ancho de la ventana gráfica "viewport width") y vh (altura de la ventana gráfica "viewport height"), pero también puede usar porcentajes. Es solo cuestión de prueba y error colocarlos como desee.Referencias en ingles:
Espero que esos consejos le ayuden.
¡Buen Trabajo!
Marked as helpful
Join 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