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

Profile Card Component

@Abd-ur-Rahman03829

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 have completed the challange but i have a samll problem that how can i change the position of background bubbles.... Any suggestion about that would be very helpfull.... Thanks in advance.....

Community feedback

Shahin NJ 1,190

@SJ-Nosrat

Posted

Hi Rahman, since you've added the bg-pattern-top and bg-pattern-bottom as background-images you should use the background-position property to postion them. Here you can find the MDN article on background position.

Be sure to add background-repeat: no-repeat as CSS by default repeats the image in a tiles starting from left to right and top to bottom.

Also, with regards to the REPORT is due to HTML accessibilty issues; in other words you should try and use semantic HTML that way you convey meaning to your HTML structure.

Instead of a <div> for your .card class, you can use: an <article> element. Here is a good article by W3 Schools.

Hope that helps!

Best of luck with your coding journey!

2

@Abd-ur-Rahman03829

Posted

@shahin1987 Thanks for your appriciation and guiding me on the right way

0

@anmolkapil

Posted

Use "position:absolute" property on bubble svg. Then adjust their position accordingly.

2

Shahin NJ 1,190

@SJ-Nosrat

Posted

@anmolkapil

Good suggestion, but that would work only if he had added the bg-pattern-top and bg-pattern-bottom as <img> tags to the HTML structure. However, he added the images as background-image with the CSS rules.

With respect to your suggestion, don't forget to apply the position: relative; to the parent container too.

1

@anmolkapil

Posted

@shahin1987 Oh, I didn't see his code.

Thanks for pointing it out. Also, Great job for explaining things in such detail.

0

@moeen-mahmud

Posted

Hello Abd-ur,

Your approach to the solution is good. For the background, you can use the images as "fixed position", something like below:

.background_image--top {
  position: fixed;
  bottom: 45%;
  right: 50%;
}

.background_image--bottom {
  position: fixed;
  top: 50%;
  left: 45%;
}

You can view my code here: https://github.com/moeen-mahmud/profile-card-component

0

@Abd-ur-Rahman03829

Posted

@fahim-mahmud Thanks for your reply Moeen. It's really helpfull

1

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