0

<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

7
Contributors
9
Replies
12
Views
7 Years
Discussion Span
Last Post by SaintThomas
0

You can use CSS instead.

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

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;
}
0

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

0
<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.

0

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

0

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

0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.