Design comparison
Solution retrospective
I'm glad to be to finish this challenge, I learned new techniques along the way. If I have to redo the project again, I'll put more time into assets selection to make it look different than the provided template.
What challenges did you encounter, and how did you overcome them?I had trouble with managing the div positions and also how to apply different backgrounds. I searched the internet for solutions and read documentations on CSS Background, Grid, etc.
What specific areas of your project would you like help with?I would like inputs on more efficient ways to center a div and applying multiple background alongside adjusting the positions.
Community feedback
- @0xabdulkhaliqPosted 10 months ago
Salaam Alaikum 👋. Congratulations on successfully completing the challenge! 🎉
- I have a suggestion regarding your code that I believe will be of great interest to you.
BACKGROUND iMAGE 📸:
- Looks like the background images has not been properly placed as same as the design image, So let me share my css snippet which helps you to easily apply the
background color
with thebackground svg
they provided to place perfectly as same as design.
- Add the following style rule to your css, after completing these steps you can experience the changes.
body { background: url(../images/bg-pattern-top.svg), url(../images/bg-pattern-bottom.svg); background-position: right 52vw bottom 35vh, left 48vw top 52vh; background-repeat: no-repeat, no-repeat; background-color: hsl(185deg, 75%, 39%); }
- Tip, Don't forget to generate a new screenshot after editing the
css
file
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful1@Fadhil762Posted 10 months ago@0xabdulkhalid
Alaikumsalam, Hi there thank you for your input, I'll give this a go later. Much appreciated, cheers Khalid
0 - @Brian-PobPosted 10 months ago
Hi Fadhil! Good work on your solution!
Since you asked about how to center a div, I would suggest watching this really short video from Fireship that explains 3 of the most common ways to center a div.
Additionally, I looked into your code and saw that you were trying to use flex on your card container. You had the right idea but your syntax just needs fixing. The proper code looks something like this:
.card-container { /* display: flexbox; */ display: flex; /* flex-direction: rows; */ flex-direction: row; } Hope this helps!
Marked as helpful1@Fadhil762Posted 10 months ago@Brian-Pob
Hello Brian, thank you for the kind words, I'll give it a shot and will keep it in mind for future challenges. Cheers
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