Design comparison
SolutionDesign
Community feedback
- @correlucasPosted over 2 years ago
👾Hello Alejandro Arigon, congratulations for this amazing solution!
I liked a lots all the work you've done here with the customization of the card design. Its amazing!
All you need to do now is make your component responsive by replacing all the properties
width
withmax-width
note that if you setwidth
the element doesnt grow because its a fixed property, so if you expect an element responsive, avoidwidth
.See the code fixes below:
.card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 370px; height: 400px; background-color: #000; border: solid 3px #127e86; border-radius: 15px; display: flex; flex-direction: column; justify-content: center; background-image: url(images/bg-card-personal.jpg); background-repeat: no-repeat; background-position-x: center; }
Hope it helps and happy coding!
Marked as helpful1@AlejandroArigonPosted over 2 years ago@correlucas Hello Lucas, I already changed the width in the code. thanks for the feedback!
0
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