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 age calculator

Reno08-codeβ€’ 300

@Reno08-code

Desktop design screenshot for the Age calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hi lovely people ,I need your help: 1, I am stuck in JavaScript part ,I tried so many days but still could not figure out why it is not responding. Can someone help:( 2, I always have problem with linking paths regarding images ,files . The button image is not showing . I do not see a problem? Thank you

Community feedback

_nehalπŸ’Žβ€’ 6,710

@NehalSahu8055

Posted

  • This will make your image visible <img src="assets/images/icon-arrow.svg"> remove / at the beginning of assets.

Marked as helpful

1

Reno08-codeβ€’ 300

@Reno08-code

Posted

Thank you . How about my JS ,I could not figure out why it is not responding :(@NehalSahu8055

0
Amrβ€’ 710

@amrmabdelazeem

Posted

Great job! don't frown regarding the JS logic, It's not an easy task and you need to combine several logic issues together in order for it to work properly, like checking for leap years between the birth and current date and what the entered month is and how many days are in it, It's complicated but if you broke it piece by piece you can mange to solve it no worries.

Marked as helpful

0
Abdul Khaliq πŸš€β€’ 72,660

@0xabdulkhaliq

Posted

Hello there πŸ‘‹. Congratulations on successfully completing the challenge! πŸŽ‰

  • I have other recommendations regarding your code that I believe will be of great interest to you.

CSS 🎨:

  • Looks like the component has not been centered properly. So let me explain, How you can easily center the component without using margin or padding.
  • We don't need to use margin and padding to center the component both horizontally & vertically. Because using margin or padding will not dynamical centers our component at all states
  • You already using Flexbox for layout, but you didn't utilized it's full potential. Just add the following rules to properly center the component.
body {
justify-content-center;
}
  • Now remove these styles, after removing you can able to see the changes
@media screen and (max-width: 767px)
body {
margin: 5rem 0.5rem;
}
  • Now your component has been properly centered

.

I hope you find this helpful πŸ˜„ Above all, the solution you submitted is great !

Happy coding!

Marked as helpful

0

Reno08-codeβ€’ 300

@Reno08-code

Posted

Thank you . How about my JS ,I could not figure out why it is not responding :( can you help ?@0xAbdulKhalid

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