Struggling with a school project where the background is being covered up? I have two columns inside a div tag - left and right. Editing text in the right column adjusts the background properly, but any attempt to edit the left column causes overflow into the footer. Any ideas on what could be wrong with my HTML/CSS?
Here's the HTML:
<!DOCTYPE html>
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>///</title>
<link href="css/default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<header>
<img alt="Wright State University Logo" src="images/WSU.jpg" />
</header>
<nav class="horizontal">
<ul>
<li><a href="final_project.html">Home</a></li>
<li><a href="biography.html">Biography</a></li>
<li><a href="courses.html">Course Information</a></li>
<li><a href="contact.html">Contact</a></li>
<li><a href="page_one.html">Important Links</a></li>
</ul>
</nav>
<div id="wrapper">
<div id="columnleft">
<aside class="asideleft">
<!-- Left Column Content -->
</aside>
</div>
<div id="columnright">
<img alt="///" src="//////////////////////" />
<aside class="asideright">
<h3 class="h3">Recent News</h3>
<p><!-- Right Column Content --></p>
</aside>
</div>
</div>
<footer>
© Wright State University • 3640 Colonel Glenn Hwy, Dayton, OH 45435 • <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b6d5c5d39bd2d3c6c2f6c1c4dfd1dec298d3d2c3">[email protected]</a> •
(937) 775-5131
</footer>
</body>
</html>
Here is the CSS:
body {
font-family: "Arial Unicode MS";
background-image: url('../images/grid.png');
background-repeat: repeat;
-webkit-background-repeat: repeat;
-moz-background-repeat: repeat;
-ms-background-repeat: repeat;
}
div#wrapper {
background-color: gold;
border-radius: 5px;
width: 980px;
margin: 0 auto;
height: auto;
}
header {
width: 980px;
padding-left: 420px;
}
h1, h2, h3, h4, h5, h6 {
border: 1px solid #FFF;
border-radius: 5px;
margin-left: 5px;
margin-right: 5px;
}
nav.horizontal {
height:60px;
width:100%;
}
nav.horizontal ul li {
border: 2px #006600 solid;
font-size:16px;
height:50px;
line-height:50px;
width:180px;
display:block;
float:left;
margin-left:5px;
margin-right:5px;
text-align:center;
}
nav.horizontal ul li a {
display:block;
background-color:gold;
color: RBG(16, 83, 55);
font-size: large;
-webkit-border-radius:30px / 25px;
-moz-border-radius:30px / 25px;
-ms-border-radius:30px / 25px;
text-decoration:none;
}
nav.horizontal ul li a:hover {
background-color: lightslategrey;
color:#000;
}
nav.horizontal ul li a:visited {
color: RGB(16, 83, 55);
}
#columnleft {
float: left;
width: 740px;
margin-top: 13px;
padding-left: 15px;
padding-right: 10px;
margin-left: 15px;
}
.h3 {
border: 3px #FFF solid;
}
#columnright {
float: none;
width: 165px;
margin-right: 10px;
padding-top: 13px;
padding-left: 810px;
padding-bottom: 5px;
}
.asideleft {
background-color: RGB(16,83,55);
border-radius: 5px;
border-color: #FFF;
color:#FFF;
text-align: center;
padding-bottom: 10px;
padding-left: 10px;
padding-right: 10px;
padding-top: 1px;
}
.asideright {
padding-top: 1px;
padding-bottom: 4px;
padding-left: 5px;
padding-right: 5px;
background-color: RGB(16,83,55);
border-radius: 5px;
border-color: #FFF;
color:#FFF;
text-align: center;
}
footer {
margin: 0 auto;
width: 980px;
color: #FFF;
font-size: medium;
background-color: gold;
border-radius: 5px;
text-align: center;
color: #2E71c0;
margin-top: 10px;
}