EMB01
asked on
No Background in FireFox, Works Well in IE
The attached code works in IE but not Firefox.
I even tried adding the following but it still won't work:
background-attachment:fixe d;
height: 100%;
width: 100%;
I even tried adding the following but it still won't work:
background-attachment:fixe
height: 100%;
width: 100%;
<!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>
<title>untitled
</title>
<style type="text/css">
/* image background style */
html, body { height: 100%; width: 100%; background-attachment:fixed; background-image: url('C://Documents and Settings/Administrator/My Documents/My Pictures/snow-mountain-wallpapers_22126_1440x900.jpg'); background-repeat: no-repeat; }
</style>
</head>
<body>
Hello
</body>
</html>
ASKER
Sorry, that doesn't work.
where is your background picture (snow-mountain-wallpapers_ 22126_1440 x900.jpg) ? Is there a link to this page ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
else if you want to use path, it should be the site's path instead of the drive path, like for example
background-image: url ('http://www.mysite.com/files/image.jpg'), but yet again the image must be found in the folder containing the css + other files on the server
background-image: url ('http://www.mysite.com/files/image.jpg'), but yet again the image must be found in the folder containing the css + other files on the server
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, I could put it on the desktop alternatively but I was just wondering why it wouldn't work as is. I've never used the file:// protocol before... interesting.
Open in new window