coral-studio Posted June 19, 2023 Posted June 19, 2023 Hi! I entered a tagline under my logo using css but I want it to change color on certain pages. I want the tagline text to be white on the homepage, but black on all the other pages since they all have light background colors. With the css I'm using now, it is always white as you can see below. Here is the css I'm using now: /*tagline below*/ .header-title-logo a:after { content:"dangerously good design..."; display: flex; font-size: 15px; margin-top: 17px; font-weight: light; text-align: center; font-style: italic; color: white; font-family: futura-pt; } If it isn't possible to make it change colors, the next best option would be to delete it entirely off of the other pages so it only appears in white on the homepage, but again, I can't figure out how to do that. Any and all help is appreciated! Thanks in advance!
Solution tuanphan Posted June 20, 2023 Solution Posted June 20, 2023 Use this code body:not(.homepage) .header-title-logo a:after { color: black !important; } tonyhowell 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment