By some curse i cannot for the life of me get this simple css call working. here is my html code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="css/stylesheet2.css" rel="stylesheet" type="text/css" />
<title>Welcome.</title>
</head>
<body>
<br>
</body>
</html>
here is my stylesheet:
body {
background-image:url(img/landscape.jpg');
}
the file is named correctly. when i assign a background-color tag to this stylesheet, i get the color for whatever i assigned. is there some rule that keeps the body from having an image background? This is absolutely incredible. HOW is this not working for me?
You need to make the path relative to your css. Since you have your css in a folder named “css” and your images in a folder named “images”, you must tell the path to move out of the css folder and into the images folder.