I have followed every suggestion in this post: CSS Background image not loading
Yet my image is not loading in the background.
This is my css/style.css
:
body {
font-family: 'Lucida Grande', 'Helvetica', sans-serif;
background-image: url(../assets/corkboard.jpg);
}
I am loading it into my index.html
file which is in the root directory of the project:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>notepad</title>
<link rel="stylesheet" href="css/style.css" type="text/main">
</head>
<body>
<button type="button" name="button" id="newNoteButton" onclick="newNote()">Add New Note</button>
<script type="text/javascript" src="js/script.js"></script>
</body>
</html>
And my images are in a folder called assets
.