Search
Star
Feedback
Setup for Free
Β© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Two different colors in the text - Kevin Powell - Community
KP-C
Kevin Powell - Community
β’
3y ago
β’
13 replies
Chaves
Two different colors in the text
Guys
, how do I make my text
, when it is in the black part
, have a white color and when it is in the light part
, it will have a dark color
?
I tried cloning the text and putting the other in a dark color
, and I tried positioning them on each background using the z
-index but I couldn
't
.
Github repo
:
https://github.com/sircarloschaves/art-gallery-website
Live page
:
https://sircarloschaves.github.io/art-gallery-website/
GitHub
GitHub - sircarloschaves/art-gallery-website: Frontend Mentor Art G...
Frontend Mentor Art Gallery Website Challenge
. Contribute to sircarloschaves
/art
-gallery
-website development by creating an account on GitHub
.
Kevin Powell - Community
Join
A friendly place for developers to meet other devs, ask questions, get help, and just have a good time π.
36,263
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
When text gets in two lines
KP-C
Kevin Powell - Community / front-end
17mo ago
Two different shadow effect
KP-C
Kevin Powell - Community / front-end
2y ago
What is the difference between text node and textContent ?
KP-C
Kevin Powell - Community / front-end
16mo ago
What's causing the different sizing of my left panel on two different pages?
KP-C
Kevin Powell - Community / front-end
2y ago