RaquelO Posted January 9, 2020 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 Link to comment Share on other sites More sharing options...
dsonesuk Posted January 9, 2020 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. Link to comment Share on other sites More sharing options...
RaquelO Posted January 9, 2020 Author 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. Link to comment Share on other sites More sharing options...
dsonesuk Posted January 9, 2020 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. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now