Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Mobile first using HTML and CSS

Erel Ropetaβ€’ 385

@erelropeta

Desktop design screenshot for the Profile card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I tried making the two circles in the background as responsive as I can, but I think there are breakpoints. I would love to hear feedbacks to improve on this :)

Community feedback

Md Ajmal Shadabβ€’ 410

@mdajmalshadab

Posted

Hey Great Work! Regarding those breakpoints I would recommend using background-image CSS property inside your main container, and then accordingly position your background using background-position property to match the desired layout.

0

Erel Ropetaβ€’ 385

@erelropeta

Posted

@mdajmalshadab Hello! :) I initially started with that using pseudo-elements to place the two circles, but I find it hard to position them. Sometimes the background-position worked then sometimes the circles won't just update their position πŸ˜…

I'll try it again :)

0
Md Ajmal Shadabβ€’ 410

@mdajmalshadab

Posted

@erelita Actually I learned that concept recently (after completing the profile card challenge), in my profile card challenge I used the follwoing properties for the background.

.bg { margin: 0; display: flex; justify-content: center; position: relative; width: 100%; height: 100%; z-index: -1; overflow: hidden; }

.bg-img-1 { position: absolute; right: 52%; bottom: 40%; }

.bg-img-2 { position: absolute; left: 50%; top: 50%; }

Hope this helps, else you can have a peek on my code to understand better. GitHub-Link

Marked as helpful

0
Erel Ropetaβ€’ 385

@erelropeta

Posted

@mdajmalshadab I tried the ::after and ::before pseudo-elements because I enjoyed using them on cssbattle.dev ☺️ Then I found it hard to get the right positions πŸ˜…

I'll try to do this again after doing the accordion. Thank you so much!

0
Md Ajmal Shadabβ€’ 410

@mdajmalshadab

Posted

@erelita great! Keep coding πŸ™ƒ

0

Please log in to post a comment

Log in with GitHub
Discord logo

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