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

Responsive landing page with CSS flexbox and JS

@FilipSzkarlat

Desktop design screenshot for the Article preview component coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


If you have any advice on what I can do better, I would be grateful for your comment. The most difficult thing for me was the pop-up bubble chat in the desktop view. Unfortunately, there is a small jump when this window pops up, I know what is causing it, but I don't know how to fix it.

Community feedback

Chenxi 210

@Chenxi96

Posted

Hi Filip,

This looks good, I suggest that you use position: absolute for div#bubble-div and div#bubble-triangle. This way you remove these div’s out of the regular flow of the web page. This will remove the small jump. Let me know if this helps!

0

@FilipSzkarlat

Posted

@Chenxi96 Hi thanks for the comment.

I tried position: absolute first, but it only worked for one screen width, e.g. 1440, but when changing the width, the div was also moved, so out of the two I chose position: relative with a slight jump.

0
Chenxi 210

@Chenxi96

Posted

Hi @FilipSzkarlat,

I see what you mean, so on mobile screen size you have div#profile margin-top: 30px change that to padding-top: 30px and have the height: 70px so that the height matches with div#profile-share. Since you use margin-top it changes the space between elements that is why you are seeing that jump in mobile screen size. This should eliminate your issue.

Marked as helpful

0

@FilipSzkarlat

Posted

Hi @Chenxi96,

Actually, I was talking about the problem of jumping in the desktop view, but thanks for the advice on jumping in the mobile view, I used it and it works. Moreover, I came up with another idea to eliminate the jump in the desktop view and placed an invisible div with the same height as the pop-up bubble when clicked. So the height is preserved and there is no more jump.

Thanks for the help.

Cheers

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