sandrajamaleddine Posted October 18, 2023 Posted October 18, 2023 Hi! I am working on the landing page for my photography website and on the home/landing page, I would like the text of everything in my header (including the logo) to be white. On the rest of the pages, I would like everything to stay black as it currently is. How do I get the text to be white on the home page only? I figured out the code below but it only works for background color and my background is transparent. Also, I already set the header to "dynamic." Is this code in the right direction?? body.homepage header#header { background-color: white !important; } Working landing page link: https://www.sandrajamaleddine.com/home-2 (password is "square")
tuanphan Posted October 21, 2023 Posted October 21, 2023 On 10/18/2023 at 1:44 PM, sandrajamaleddine said: Hi! I am working on the landing page for my photography website and on the home/landing page, I would like the text of everything in my header (including the logo) to be white. On the rest of the pages, I would like everything to stay black as it currently is. How do I get the text to be white on the home page only? I figured out the code below but it only works for background color and my background is transparent. Also, I already set the header to "dynamic." Is this code in the right direction?? body.homepage header#header { background-color: white !important; } Working landing page link: https://www.sandrajamaleddine.com/home-2 (password is "square") The url doesn't exist. Can you check it again? 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