Design comparison
Solution retrospective
Mobile sizing media queries. Still learning that.
What specific areas of your project would you like help with?Media queries for mobile.
Community feedback
- @Code-BeakerPosted 6 months ago
Hi there, congratulations on completing this project, you've done a great job! 🎉
This might not be the help you've specifically asked for but, I would like to put forward some of my suggestions regarding your HTML and CSS.
- instead of using a
div
for the buttons, use either ana
(anchor) orbutton
tags. They are more accessible to the users. This will also reduce a few lines of code for you.
Apply this to:
- "Change" link
- "Proceed to payment" button
- "Cancel Order" link
Instead of:
<div class="payment-button"> <p id="PTP">Proceed to Payment</p> </div>
You can try using:
<button class="payment-button">Proceed to Payment</button>
or:
<a href="#" class="payment-button">Proceed to Payment</a>
These make much more sense for a button.
- instead of
height
use amin-height
for the container:
.container { min-height: 100vh; }
-
use
rem
instead ofpx
for:rem
is more of a flexible unit when it comes to making responsive websites. -
font-size
-
padding
-
margin
If you want to learn further, check this article.
Hope this helps you improve your solution! 😄
Marked as helpful0@natebe4Posted 6 months agoThank @Code-Beaker ! I am still learning. I will take that all into consideration when i get further into learning this stuff! I truly appreciate the comments and help! Thank you!
1@natebe4Posted 6 months ago@Code-Beaker just an fyi. i did update code on this project on github if youd like to see some of the changes i made.
1 - instead of using a
Please log in to post a comment
Log in with GitHubJoin 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