Here's the code:
Html:
<!DOCTYPE html>
<html lang="en">
<head>
<title>title</title>
<meta charset="utf-8">
<link rel="stylesheet " type="text/css" href="Style_01. css">
</head>
<body>
<header>
header
</header>
<nav>
nav
</nav>
<main>
main
</main>
<footer>
footer
</footer>
</body>
</html>
CSS:
body{
background-image: url("Images\bac k_01.jpg");
}
All files should be correctly named. I've been at this for hours and I can't figure it out. Help!
Btw, I know that the CSS does work. If I do "background-color" it works with what I define. But for some reason the code for "background-image" (or shorthand background with image url after) doesn't work.
Html:
<!DOCTYPE html>
<html lang="en">
<head>
<title>title</title>
<meta charset="utf-8">
<link rel="stylesheet " type="text/css" href="Style_01. css">
</head>
<body>
<header>
header
</header>
<nav>
nav
</nav>
<main>
main
</main>
<footer>
footer
</footer>
</body>
</html>
CSS:
body{
background-image: url("Images\bac k_01.jpg");
}
All files should be correctly named. I've been at this for hours and I can't figure it out. Help!
Btw, I know that the CSS does work. If I do "background-color" it works with what I define. But for some reason the code for "background-image" (or shorthand background with image url after) doesn't work.
Comment