I have an external CSS stylesheet, but for some reason the images are not loading.
Here is the source code at which i link to style.css.
<?
session_start();
if(isset($_POST['submit'])){
if(!isset($_POST['rules'])){
$error = "Must read rules at spawn.";
} else if(isset($_POST['grief'])){
$error = "We don't normally allow griefers. Your not allowed on our server unless you ask an Admin.";
$_SESSION['banned']=true;
} else if(!isset($_POST['reg'])){
$error = "We prefer regular players.";
} else if(empty($_POST['username'])){
$error = "The username field is empty?.";
} else if($_POST['dumbtest'] != "6"){
$error = "Your too dumb to join this server.";
} else {
include "comms.php";
addPlayerToExplorer($_POST['username']);
$error = "Welcome to SurviveEquestria, if everything went OK your now a Builder!";
}
}
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>| Home</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
And theres nothing special about the style.css, but it begins with:
body {
background-image:url(images/bg.jpg);
}
#container {
margin-left:auto;
margin-right:auto;
width:1000px;
}
All of my images are located in an images folder, so i believe it points to the right images.