I am making a website in HTML and CSS and I am trying to include and image, but the image won't appear. This is what I have done:
The HTML part:
<nav>
<ul>
<div class = "top-links">
<li><a href="index.html">Home page</a></li>
<li><a href="about us.html">About us</a></li>
<li><a href="our songs.html">Our songs</a></li>
<li><a href="see us play.html">See us play</a></li>
<li><a href="Contact us.html">Contact us</a></li>
<li><a href="merchandise.html">Merchandise</a></li>
<li><a href="playing a concert.html">Playing a concert</a></li>
</div>
</ul>
</nav>
And the CSS part:
.top-links {
border-style: hidden;
font-weight: 300;
text-align: center;
line-height: 1.5em;
background-image: url("images/cricket bat and ball.jpg");
}
<div>as a child of a<ul>. I'd also recommend removing the spaces in your image's file name, possibly replacing them with underscores or dashes.