WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts



WeLoveCSS > WEB DESIGN > CSS > Help with background image

Reply
  Thread Tools Display Modes
Old 10th June 07, 10:37 PM   #1
glennmward
WLC Member
 
Join Date: Jun 2007
Posts: 1
Default Help with background image

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!
glennmward is offline   Reply With Quote
Old 11th June 07, 09:58 AM   #2
craig
WLC Lover
 
Join Date: Apr 2007
Posts: 85
Default Re: Help with background image

Code:
<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...

Code:
<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>
craig is offline   Reply With Quote
Reply


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
background image not appearing. mattrd CSS 4 2nd February 07 01:32 PM
Background image not appearing in Firefox pemps CSS 11 29th September 06 09:44 AM
List problem... willsmith727 CSS 1 1st September 06 01:54 PM
Background Image - FireFox/Mac dbldutch Browser Compatibility 6 2nd August 06 03:06 PM
Background Image Not Showing revul CSS 5 20th May 06 09:10 PM


All times are GMT. The time now is 11:33 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.