Forum Moderators: not2easy

Message Too Old, No Replies

static background image in firefox 0.9.1

         

ghosty

10:42 am on Jun 30, 2004 (gmt 0)

10+ Year Member



Hello, i'm using css to make a background image non-tiling :-

------------------------------------------------------
<style type="text/css">
<!--
body {
background-color: #000000;
background-image: url(background.jpg); background-repeat: no-repeat
}
------------------------------------------------------

however to make the image fixed (so it remains static when scrolling the page) i'm using :-

------------------------------------------------------
<body text="#ffcccc" vlink="#0099cc" alink="#00ccff" link="#00ccff" bgproperties="fixed" bgcolor="#000000">
------------------------------------------------------

..it works fine in IE6 but not in Firefox. Does anybody out there know how to make this work? (Sorry, i'm not very good at all this!:)

Many thanks,

Jonathan.

tafkar

11:27 am on Jun 30, 2004 (gmt 0)

10+ Year Member



Hi Jonathan,

welcome to Webmaster World!

Maybe this is what will work for you:

body {
background-color: #000000;
background-image: url(background.jpg);
background-repeat: no-repeat;
[b]background-attachment: fixed[/b]
}

ghosty

12:44 pm on Jun 30, 2004 (gmt 0)

10+ Year Member



It works a treat!

Thank you very much! :)

Jonathan.