So Im trying to set the background of my body element. I know my url is correct because the image works as a background for other things like divs and p elements. I thought it could have been a clearfix problem since there are some floated divs within the body tag, but setting the overflow to auto and floating the body didnt change anything, also Iv never had that problem with the body tag. (Side note, my nav is set to fixed position but it still scrolls with the page. Whats even weirder is setting the position to fixed still takes the nav out of the DOM, so any help with this would be great)
Heres my code:
HTML
<html>
<head>
<title>Darren Segal - Web and Graphics Professional</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Stylesheets -->
<link rel="stylesheet" href="css/col.css" media="all">
<link rel="stylesheet" href="css/2cols.css" media="all">
<link rel="stylesheet" href="css/3cols.css" media="all">
<link rel="stylesheet" href="css/4cols.css" media="all">
<link rel="stylesheet" href="css/5cols.css" media="all">
<link rel="stylesheet" href="css/6cols.css" media="all">
<link rel="stylesheet" href="css/7cols.css" media="all">
<link rel="stylesheet" href="css/8cols.css" media="all">
<link rel="stylesheet" href="css/9cols.css" media="all">
<link rel="stylesheet" href="css/10cols.css" media="all">
<link rel="stylesheet" href="css/11cols.css" media="all">
<link rel="stylesheet" href="css/12cols.css" media="all">
<link rel="stylesheet" href="css/slidebars.min.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body>
<!-- Main Site Content -->
<div id="sb-site">
<a href="#" class="sb-toggle-left"><img src="img/menu.png"></a>
<!-- Main Navigation -->
<nav>
<ul id="menu">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<img id="logo" src="img/logo-header.png">
<h1>About</h1>
<div class="section group about">
<div class="col span_1_of_3">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tempor interdum nibh, eget vulputate sapien ornare id. Sed pretium eleifend augue, nec interdum felis volutpat non. Quisque eget lacus neque. Donec nec nibh erat. Vestibulum aliquet magna sit amet ante rutrum, in gravida dolor porta. In sem lacus, condimentum eget lacus sed, vehicula scelerisque nunc. Curabitur vel metus lorem. Integer neque dolor, scelerisque sit amet interdum a, blandit ut ipsum.</p>
</div>
<div class="col span_1_of_3">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tempor interdum nibh, eget vulputate sapien ornare id. Sed pretium eleifend augue, nec interdum felis volutpat non. Quisque eget lacus neque. Donec nec nibh erat. Vestibulum aliquet magna sit amet ante rutrum, in gravida dolor porta. In sem lacus, condimentum eget lacus sed, vehicula scelerisque nunc. Curabitur vel metus lorem. Integer neque dolor, scelerisque sit amet interdum a, blandit ut ipsum.</p>
</div>
<div class="col span_1_of_3">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin tempor interdum nibh, eget vulputate sapien ornare id. Sed pretium eleifend augue, nec interdum felis volutpat non. Quisque eget lacus neque. Donec nec nibh erat. Vestibulum aliquet magna sit amet ante rutrum, in gravida dolor porta. In sem lacus, condimentum eget lacus sed, vehicula scelerisque nunc. Curabitur vel metus lorem. Integer neque dolor, scelerisque sit amet interdum a, blandit ut ipsum.</p>
</div>
</div>
</div>
<!-- Your left Slidebar content. -->
<div class="sb-slidebar sb-left">
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Slidebars -->
<script src="js/slidebars.min.js"></script>
<script>
(function($) {
$(document).ready(function() {
$.slidebars({
siteClose: true, // true or false
disableOver: 800, // integer or false
hideControlClasses: true, // true or false
scrollLock: false // true or false
});
});
}) (jQuery);
</script>
</body>
</html>
SCSS
@import ‘variables’;
/* CSS Reset */
* {
margin: 0;
padding: 0;
}
@font-face {
font-family: bigJohn;
src: url(../fonts/BigJohn.woff2),
url(../fonts/BigJohn.woff);
}
body {
background-image: url(../img/sweater.png);
}
nav {
position: fixed;
width: 100%;
background-color: $indigo;
box-shadow: 0px 5px 5px grey;
}
#menu {
overflow: auto;
width: 50%;
margin: 0 auto;
list-style: none;
background-color: $indigo;
li {
float: left;
width: 25%;
text-align: center;
font-size: 16px;
line-height: 50px;
a {
display: block;
font-family: bigJohn;
text-decoration: none;
color: aqua;
}
a:hover {
color: $indigo;
background-color: #fff;
}
}
}
#logo {
display: block;
width: 100%;
margin-top: 50px;
}
h1 {
text-align: center;
font-family: bigJohn, Helvetica, sans-serif;
}
p {
font-family: Helvetica, sans-serif;
font-size: 16px;
line-height: 150%;
text-indent: 30px;
}
Thanks a lot for any help