Design comparison
SolutionDesign
Solution retrospective
Will like to know if there is a method to make the button text color inherit the background color of the parent
Community feedback
- @matiasluduena23Posted 12 months ago
Hi Hezekiah Adekunle! Good work!!!
- No, you can't inherit color from differents properties, you can inherit the background color from the parent element or the color, to use in the same property
background-color: currentColor;
But not the background-color to apply to your color. - In your main element try this, change the
width: 55%
formax-width:700px;
its looks better in very large screen. Avoid percentage in big elements, instead use max-width.
Good code!
Matias
Marked as helpful0@kerdainoPosted 12 months agookay thank you i will make that adjustment regarding large screen@matiasluduena23
0 - No, you can't inherit color from differents properties, you can inherit the background color from the parent element or the color, to use in the same property
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