I'm new to programming and was hoping someone could help me with this one.
I have multiple pages and would like them all to be different colors. I wrapped all of my code in a class and then styled them like this:
.tech_page{
background-color: #F4C0CC;
}
And the body looks like this:
<body>
<div class="tech_page">
<div class="nav-bar">
<nav> <a href="/"><p class="nav-home"> Home </a> </nav>
<nav> <a href='/tech'><p class="nav-tech"> Tech </p></a> </nav>
<nav> <a href='/about'><p class="nav-about"> About </p></a> </nav>
<nav> <a href='/mindmap'><p class="nav-mindmap"> Mind Map </p></a> </nav>
<nav> <a href='/projects'><p class="nav-projects"> Projects </p></a> </nav>
</div>
</div>
</body>
But only the nav bar is getting the background color! Everything else remains white. The entire span of the page gets the background color if I put a class on the body but I don't think that's clean code. Does anyone have any ideas?