Is there a way to prevent the background from repeating on my webpage? I currently have it repeated twice, but it looks odd. I want the background to fill the entire page without repeating. Here is my code snippet, but I can share a link to the website if necessary.
Snippet:
<div class="container">
<img src="box.png" style="float: left;" />
<div class="navrow">
<ul>
<li class="navmenu" style="background: #6dc066;"><a href="index.php">Home</a></li>
<li class="navmenu" style="background: #a155e7;"><a href="about.php">About</a></li>
<li class="navmenu" onclick="shakeregister();" style="background: #ffa500;">Register</li>
<li class="navmenu" style="background: #3399ff;"><a href="play.php">Login</a></li>
<li class="navmenu" style="background: #ff6666; margin-right: 0px;"><a href="contact.php">Contact</a></li>
<div style="clear: left;"></div>
</ul>
</div>
<div style='clear:both'></div>
</div>
CSS:
body {
font-family: Titillium Web, sans-serif;
background-image: url("images/polarvillebg.png");
}
h1, h2, h3 {
font-weight: normal;
}
.container {
width: 70%;
margin: 0 auto;
margin-top: 2%;
}
.navrow {
float: right;
text-align: center;
}
.navrow li {
display: inline-block;
}
.navrow li a {
color: #fff;
text-decoration: none;
width: 100%;
height: 100%;
display: block;
}
.navmenu {
height: 100px;
width: 78px;
color: #fff;
margin-right: 4px;
line-height: 100px;
transition:height 0.5s;
-webkit-transition:height 0.5s;
box-shadow: rgb(204, 204, 204) 0px 0px 10px 0px;
cursor: pointer;
}
.navmenu:hover {
height: 107px;
}