Remove white bg from header/navigation on top of hero image

Viewed 109

Poorly worded question I think, however, I'm working on some coursework just now, it's a very basic HTML website. I'm trying to overlay the logo and the navigation on my Hero image. The issue I'm facing is trying to get the white bg from the header div to be transparent or remove it completely and have the nav and logo at the top of the hero image.

2 Answers

The easiest way to do it is just move header section to hero section like that:

  <div class="hero">
       <a href="">
    <h1 class="logo"><strong>FOTO.</strong></h1>
  </a>
<header>
    <nav>
      <ul>
        <li><a href="#hero">HOME</a></li>
        <li><a href="#about">PORTFOLIO</a></li>
        <li><a href="#about">SERVICES</a></li>
        <li><a href="#about">ABOUT</a></li>
        <li><a href="#contact">CONTACT</a></li>
      </ul>
    </nav>
</header>
 <span class="herotext">THE WILD THROUGH A LENSE</span> 

  </div>

Related