Solution 1 :

Please see the below code

header{
    height: 600px;
    width: 100%;
    background: url("https://image.shutterstock.com/image-photo/summer-beach-holiday-online-shopping-260nw-461355724.jpg") no-repeat;
    background-size: cover;
}
.header-bar{
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.logo{
    width: 10em;
}
nav{
    vertical-align: middle;
}
nav ul{
    list-style: none;
}
nav ul li{
    display: inline;
}
nav ul li a{
    font-size: 1.2em;
    color: #80797F;
    padding: 1em;
    text-decoration: none;
}
nav ul li a:hover{
    color: #5CC6FF;
}
<header>
    <div class="header-bar">
    <div class='logo'><a href='index.html'><img src="img/logo.svg" alt="Logo"></div>
    <nav>
      <ul>
        <li><a href='#Services'>Services</a></li>
        <li><a href='#Portfolio'>Portfolio</a></li>
        <li><a href='#About'>About</a></li>
        <li><a href='#Team'>Team</a></li>
        <li><a href='#Contact'>Contact</a></li>
      </ul>
    </nav>
  </div>
    <div class='header-text'>
      <h3>Welcome to our studio</h3>
      <h1>It's Nice To Meet You</h1>
      <button>Tell Me More</button>
    </div>
  </header>

Please Update below css and header Background Image Show

header{
height: 600px;
width: 100%;
background: url(images/headerbg.jpg) no-repeat;
background-size: cover;

}

Solution 2 :

I think the html code is seems wrong.. Please close the anchor tag..

<div class='logo'><a href='index.html'><img src="img/logo.svg" alt="Logo"></a></div>

Solution 3 :

Try this:

  1. header{
        height: 600px;
        width: 100%;
        background: url("img/headerbg.jpg") no-repeat;
        background-size: cover;
    }
    
  2. Error in HTML

    <div class='logo'><a href='index.html'><img src="img/logo.svg" alt="Logo"></a></div>
    

Problem :

I have a header with a background url however it won’t show. Code is below.

The desired result is to have the header have a background image with the logo and nav displayed on top of it. So the text is written over the background image.

header {
  height: 600px;
  width: 100%;
  background: url("img/headerbg.jpg") cover no-repeat;
}

.header-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.logo {
  width: 10em;
}

nav {
  vertical-align: middle;
}

nav ul {
  list-style: none;
}

nav ul li {
  display: inline;
}

nav ul li a {
  font-size: 1.2em;
  color: #80797F;
  padding: 1em;
  text-decoration: none;
}

nav ul li a:hover {
  color: #5CC6FF;
}
<header>
  <div class="header-bar">
    <div class='logo'>
      <a href='index.html'><img src="img/logo.svg" alt="Logo"></div>
    <nav>
      <ul>
        <li><a href='#Services'>Services</a></li>
        <li><a href='#Portfolio'>Portfolio</a></li>
        <li><a href='#About'>About</a></li>
        <li><a href='#Team'>Team</a></li>
        <li><a href='#Contact'>Contact</a></li>
      </ul>
    </nav>
  </div>
  <div class='header-text'>
    <h3>Welcome to our studio</h3>
    <h1>It's Nice To Meet You</h1>
    <button>Tell Me More</button>
  </div>
</header>

Comments

Comment posted by Paulie_D

Almost certainly a path issue. Try

Comment posted by Rafael Tavares

You didn’t close your anchor tag

Comment posted by Mac Hooper

This didn’t fix the problem

Comment posted by Alexandr

Are you working on your laptop or on the server? “cover” must be written in a separate property: background-size: cover;

Comment posted by Alexandr

try this: background: url(“../img/headerbg.jpg”) no-repeat;

By