Upon downloading a template from the internet, I created a menu at the top with the logo positioned below it. However, when scrolling down, the menu items were supposed to turn black with a white background, resembling this:
https://i.sstatic.net/1HTLZ.jpg
Instead, the menu items appeared in black with a white background but the logo was not enclosed within the white background, resulting in this:
https://i.sstatic.net/8tIiK.jpg
Below is my header code:
<header id="header" class="transparent-header full-header " data-sticky-class="not-dark">
<div id="header-wrap">
<!-- Primary Navigation
============================================= -->
<nav id="primary-menu" class="style-2 center">
<div class="container clearfix">
<div id="primary-menu-trigger"><i class="icon-reorder"></i></div>
<ul class="divcenter">
<li class="current"><a href="index.html"><div>Home</div></a>
<li><a href="#"><div>About</div></a></li>
<li><a href="#"><div>Services</div></a></li>
<li><a href="#"><div>Contact</div></a></li>
</ul>
<!-- Logo
============================================= -->
<div id="logo" class="divcenter">
<a href="index.html" class="standard-logo" data-dark-logo="images/logo-dark.png"><img class="divcenter" src="images/logo.png" alt="Canvas Logo"></a>
<a href="index.html" class="retina-logo" data-dark-logo="images/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8ee2e1e9e1a3eaeffce5cebcf6a0fee0e9">[email protected]</a>"><img class="divcenter" src="images/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="adc1c2cac2ed9fd583ddc3ca">[email protected]</a>" alt="Canvas Logo"></a>
</div><!-- #logo end -->
</div>
</nav><!-- #primary-menu end -->
</div>
</header><!-- #header end -->