View Full Version : Help with background image
glennmward
10th June 07, 10:37 PM
Could someone please help, I have been trying to figure this out for weeks. I have created a page in the same way as i have in the past but the background image will not show up in IE or firefox but will in safari. I can change the background color using css but it does not work for the image Website is www.nealgent.com
please help, i know its probably something real simple but i can't put my ****** on it!
thanks in advance!
craig
11th June 07, 09:58 AM
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Neal Gent</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(../images/bg.jpg);
background-repeat: repeat;
}
.BodyText {font-family: Arial, Helvetica, sans-serif}
-->
</style></head>
<body>
<table width="599" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" valign="top"><p>
<!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=ISO-8859-1" />
<title>Header</title>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
-->
</style>
</head>
That's very messed up... Change it with this...
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Neal Gent</title>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
<!--
body {
margin: 0px 0px 0px 0px; /* top right bottom left */
background-image: url(../images/bg.jpg);
background-repeat: repeat;
}
.BodyText {font-family: Arial, Helvetica, sans-serif}
.style1 {
color: #FFFFFF;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
font-weight: bold;
}
-->
</style></head>
<body>
<table width="599" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" valign="top"><p>
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.