Design comparison
Solution retrospective
PLEASE HELP ME HOW TO CHANGE THE COLOR OF THE BLUE BUTTON IN MY BROWSER IT SHOWS WHITE
Community feedback
- @HassiaiPosted over 1 year ago
Replace<div class="container">with the main tag and <div class="attribution"> with the footer tag to fix the accessibility issues. click here for more on web-accessibility and semantic html
Use the colors that were given in the styleguide.md found in the zip folder you downloaded.
Give the body a background-size of contain
To center .container on the page using flexbox or grid instead of margin, add min-height:100vh; display: flex; align-items: center: justify-content: center; or min-height:100vh; display: grid place-items: center to the body.
USING FLEXBOX: body{ min-height: 100vh; display: flex; align-items: center; justify-content: center; }
USING GRID: body{ min-height: 100vh; display: grid; place-items: center; }
For a responsive content-replace the width in .container with max-width.
Give .buy a background-color of bright-blue and a box-shadow value and give it hover effect opacity:0.5.
Use relative units like rem or em as unit for the padding, margin, width values and preferably rem for the font-size values, instead of using px which is an absolute unit. For more on CSS units Click here
Hope am helpful.
Well done for completing this challenge. HAPPY CODING
Marked as helpful1 - @0xabdulkhaliqPosted over 1 year ago
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.
HTML 🏷️:
- This solution generates accessibility error reports, "All page content should be contained by landmarks" is due to
non-semantic
markup, which lack landmark for a webpage
- So fix it by replacing the element
<div class="attribution">
the with semantic element<footer>
in yourindex.html
file to improve accessibility and organization of your page.
- What is meant by landmark ?, They used to define major sections of your page instead of relying on generic elements like
<div>
or<span>
- They convey the structure of your page. For example, The
<footer>
typically contains information about the author of the section, copyright data or links to related documents.
. CSS 🎨:
- You can easily change the
color
ofbutton
by applying the following style rule
a { color: white; }
- First you wanna select the
a
tag and then give thecolor
ofwhite
.
I hope you find this helpful 😄 Above all, the solution you submitted is great !
Happy coding!
Marked as helpful0 - @0xabdulPosted over 1 year ago
Hey there well congrats on completing the Order summary component 😃
- A little bit recommendation for improve your code 📝
- In Html 🏷️ :
- In fact using the button tag in right way use only so the reason errors occurred for button
- please do💢
- <button>proced to payment</button>
- this right way to use to clear the Accessibility reports
- Don't use⚠️
- <button class="buy" type="button"><a href="#">Proceed to Payment</a></button>
- The html page Must be contained by landmark so fix the problem ❗
- Ex :
<html lang="en"> <head> <title>Hello</title> </head> <body> <header> header , logo to use</header> <main> the main content to use </main> <footer> copy right and challenge by Front end mentor by user like this</footer> </body> </html>
- I Hope it's useful for you✓
- Happy Coding
Azam Mustufa
🤩
0
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