Design comparison
SolutionDesign
Solution retrospective
Suggestions as to how to make the button text the same color as the container background color would be very helpful. Thanks
Community feedback
- @jesse10930Posted over 3 years ago
Hey Daniel, your project looks great! To change the color of the button text, you just have to add a 'color' attribute to a class attached to the button. It looks like you made a 'button1' class for all 3 buttons, but I don't see it ever referenced. If you change the classes for the second and third buttons to 'button2' and 'button3', then add:
.button1 { color: orange; } .button2 { color: blue; } .button3 { color: green; }
to your CSS file (with the colors you want), your page should reflect the desired changes.
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