<body bgproperties=fixed background="../britney_spears_12.jpg">


i use that. but it works in iexplorer only , not in firefox?
any way to make it work on firefox

You can use CSS instead.

<body style="background-image:url('source'); background-repeat:no-repeat;">

Like the man said, using CSS rather is recommended. But here is the proper html tag to set the background as an image if you want to use html instead:

<body background="/the/path/to/the/image.gif">

To ad to the CSS code of the above poster, to set all the background properties at once, do the CSS code like this:

body {
  background-image: url("http://yoursite.com/path/to/image.gif");
  background-position: 50% 50%;
  background-repeat: no-repeat;
}

damn i use html

If you still use html, see my tag for html in the above post.

Here it is again:

<body background="/the/path/to/the/image.gif">

Hope this helps

<body style="background-image:url('image.jpg'); background-repeat:no-repeat; background-position: 50% 50%; background-attachment: fixed;">

That is all. You should use CSS that is more comfortable than HTML attributes. And also HTML is for content structure and CSS is the representation of the content.

Hey u can use CSS for dat..that should be easy .

Hey NewOrder. Its time now for you to upgrade. HTML doesn't do much. It is just used to define content.

If you still use html, see my tag for html in the above post.

Here it is again:

<body background="/the/path/to/the/image.gif">

Hope this helps

yes it is work for me..

i think this is not a problem of Use HTML or CSS it is mistake in your code may.
Try to set image as no repeat and put image at fixed position.

Or use Table or DIV element of the HTML to put image at specific location.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.