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

TIP-Calculator-App

Massoudโ€ข 170

@Massoud5

Desktop design screenshot for the Tip calculator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Community feedback

Abhikโ€ข 4,840

@abhik-b

Posted

๐Ÿ‘‹ Hi Massoud , Your solution is Awesome , it works perfectly & looks nice as well. Well Don ๐Ÿฅณ๐Ÿฅณ๐Ÿฅณ

However I think if you use

  • max-width:860px (you can give any suitable fixed value ) instead of width:60% then your responsiveness will be better & you can have the media query at 768px because at 1024px mobile view is not looking good !
  • in right-column section , you have some p tags with class p1,p2 , there instead of using position : relative to position elements , you can have a parent div with display:flex;justify-content:space-between like shown below: (this is a better way than using position )
<div class="flex justify-between">
            <p class="">
              Tip Amount
              <span class="">/ person</span>
            </p>
            <p
              id="tip-amount"
              class=""
            >
              โ‚น4.27
            </p>
          </div>

Other than that your solution is amazing & Please keep contributing fantastic solutions like this ๐Ÿ‘

Marked as helpful

0
Massoudโ€ข 170

@Massoud5

Posted

Thanks Abhik for your helpful feedback. I have now a better responsive page๐Ÿ˜Š.

But for the second part, I'm not sure that it is realizable because I will have two columns of <p> if I add them in a <div> parent with <<display : flex>>.

I have the <<position : relative >> only for <span>s that are naturally <<inline-block>> . I know it's not the best solution but It works๐Ÿ˜….

Massoud

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