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

Advice Generator App

@Petrosdevri

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


This is my solution for the Advice Generator App.

It was overall easy and enjoyable building this project.

I would appreciate your feedback and would like to receive your comments and perspectives regarding the project. Thanks a lot!

Community feedback

Hikmah 1,070

@Hikmahx

Posted

Hi @Petrosdevri 👋. Nice work! I have some suggestions for you:

  • For the image, pattern-divider.svg, not to overflow on smaller devices, it is better to add width and max-width property:
.advice-text {
    img{
        width: 100%;
        max-width: 300px;
   }
}

By adding the width, it contracts and expands based on the screen size. Adding a max width will make it not expand way beyond the width you initially wanted. You can set the max-width above to whatever you want.

  • It is better to add padding to the advice-app class because as the screen gets smaller, the spacing at the side disappears:
.advice-app {
    padding: 16px;
}

Hope this was helpful

Marked as helpful

0

@Petrosdevri

Posted

@Hikmahx Hello! I have tried out your advice and would like to share my thoughts.

In terms of the 1st snippet, I wasn't sure how it impacted my image because I had set a media query width and it seems to work in small devices until I tried changing the device width to a higher value than 700px, which is great.

As for your 2nd snippet, it helped a lot. I didn't know how padding would help the element as I thought it would overflow it, so this insight was quite vital.

Overall, I appreciate your advice, and thus thanks a lot!

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