My GitHub Pages hosted website is giving me trouble with the footer styling. No matter what I try, I can't seem to get the background color to show up:
h1 {
background-color: #000000;
}
I'm attempting to create a footer similar to the one at the bottom of this page, but using background-color: #color;
isn't working for me. Could someone assist me? Here's the HTML and CSS I'm currently using:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel='stylesheet' href='style.css'/>
<script src='script.js'></script>
<link rel="shortcut icon" href="MyLogo.ico" />
</head>
<body>
<center>
<img src="A.jpg"></img>
<div class="navbar">
<a href="/">Home</a>
<a href="About/">About</a>
<a href="Photos/">Photos</a>
<a href="Contact">Contact</a>
</div>
</center>
<br/>
<br/>
<br/>
<div class="footer">
<a href="https://www.facebook.com/Amundson-Aerial-Photography-AAP-881108668736951/">My Facebook page</a>
</div>
</body>
</html>
body {
font-family: sans-serif;
}
.navbar {
overflow: hidden;
background-color: black;
}
.navbar a {
float: left;
display: block;
color: white;
text-align: center;
padding: 14px 20px;
text-decoration: none;
transition: .3s;
}
.navbar a:hover {
background-color: #666666;
}
.footer {
width: 100%;
background-color: #000000;
padding: 60px 0px;
position:fixed;
left:0px;
bottom:0px;
height:50px;
width:100%;
background:#999;
}