RaquelO 0 Posted January 9, 2020 Report Share Posted January 9, 2020 (edited) I've been trying to apply the pomegranate color from the W3.CSS Flat UI theme to text, but it doesn't work. I've tried w3-text-pomegranate and w3-text-flat-pomegranate. Is it possible to apply theme colors to text using the class method? Edited January 9, 2020 by RaquelO clarity and correction Quote Link to post Share on other sites
dsonesuk 914 Posted January 9, 2020 Report Share Posted January 9, 2020 That class applies background-color, and color of. .w3-flat-pomegranate {color:#fff; background-color:#c0392b;} So you have to create your own custom class to apply color: #c0392b; and background-color: to go with it. Quote Link to post Share on other sites
RaquelO 0 Posted January 9, 2020 Author Report Share Posted January 9, 2020 I ended up just applying the color via a style. It's a shame that W3.CSS is limited in this way. Quote Link to post Share on other sites
dsonesuk 914 Posted January 9, 2020 Report Share Posted January 9, 2020 I wouldn't use those class colors, i consider them a bad idea, i would use a general colour class colorstyle1, colorstyle2 etc then i could change that general color class to whatever style colour i want, instead of removing every w3-red and changing to w3-blue on every element using it. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.