I have a thick white line on my webpage in between two divs and every time I delete my <ul>
in the second div the white line goes away. How do I delete the white line and keep my <ul>
? I have tried removing all of the CSS elements, without success. Even with an empty <ul>
the space is there...
.header {
width: 100%;
height: 410px;
background-color: #040104;
text-align: center;
}
.nav {
width: 100%;
height: 50px;
background-color: #040104;
font-family: sans-serif;
text-align: center;
}
.nav li {
display: inline;
color: #ce5e27;
font-size: xx-large;
}
.nav ul li a {
padding: 1em;
color: #ce5e27;
text-decoration: none;
}
.contentContainer {
height: 600px;
background-color: #040104;
}
.content {
width: 60%;
height: 200%;
float: left;
background-color: #040104;
text-align: center;
}
.content h1 {
font-family: sans-serif;
font-size: x-large;
color: #ce5e27;
}
.thumbnail {
width: 40%;
height: 200%;
background-color: #040104;
float: right;
text-align: center;
}
.thumbnail h1 {
font-family: sans-serif;
font-size: large;
color: #ce5e27;
}
.footer {
clear: both;
width: 100%;
height: 60px;
background-color: black;
font-family: sans-serif;
text-align: center;
}
.footer li {
display: inline;
color: #ce5e27;
font-size: large;
}
.footer h1 {
color: #ce5e27;
font-size: small;
text-align: center;
font-family: sans-serif;
}
<div class="header">
<img src="images/basketball-rims-header.gif">
</div>
<div class="nav">
<ul>
<li> <a href="index.html">Home</a></li>
<li>|</li>
<li> <a href="http://www.nba.com/news/">News</a></li>
<li>|</li>
<li> <a href="http://stats.nba.com/players/?ls=iref:nba:gnav">Players</a></li>
<li>|</li>
<li> <a href="http://www.nba.com/teams/?ls=iref:nba:gnav">Teams</a></li>
<li>|</li>
</ul>
</div>