I have a few queries to share. I noticed that the background of my menu bar is white, but when I remove a specific class from an element further down on the page, the menu bar turns black. I am perplexed as to why changing the style of an HTML section element in a distant location affects the color of the navigation bar. To investigate, I opened Chrome Dev Tools and examined the menu section to understand how it obtains its color. The background-color property is displayed at the very end of this picture and appears 'faded', without being crossed out.
https://i.sstatic.net/7GWXa.png
In Chrome Dev Tools, the background-color appears as white - the color I desire, yet the menu remains black. Upon adding element.style { background-color: white }, the menu returns to white.
Queries:
- What does it mean for a property to be faded out in Chrome Dev Tools (as opposed to crossed out)?
- Do you have any ideas or suggestions for why the background of a menu div would unexpectedly change to black?
Thank you, Dean