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

ProfileCardComponent-BekirKutluhanCoskun

@BekirKutluhan

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 had hard times while trying to place background images :) I'm still unsure that if texts are correctly typed or is something missing? I would love to learn how to place background images responsive.

Community feedback

Fancy 320

@maciejkrol18

Posted

You placed the background images in a correct way 👍 In order to make the background images responsive, you need to create a media query in your .css file - a media query is a set of rules that apply while certain criteria is met, like the devices screen width. Media queries are a core element when it comes to making a site responsive. In order to apply different styling to different screen sizes, create a media query like so (by typing this stuff in at the end of your .css file, preferrably):

@media screen and (max-width:810px) { 
      /* things go here, in your case... */
      .tlc {
           background-position:top /*value*/ left /*value*/, right /*value*/ bottom /*value*/;
      }
}

Making it like so will apply the specified rules to the .tlc class when the screen width gets lower than 810px, which will be fine for mobile devices (change the value if you want). Tweak the background-position values so that the background looks like on the provided mobile design.

One more suggestion, work on your file readability. Pay more attention to things like tabbing, spaces etc. Also some of your classes are empty with no rules set (for example the .child2 class) - do not use empty rulesets, you can remove those.

There's lot of things to learn, definitely not bad for your first project here, good luck.

Read more about media queries here if you want: https://www.w3schools.com/css/css_rwd_mediaqueries.asp You can learn tons of other things on w3schools, from the basics to advanced stuff as well

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