...

View Full Version : Static Background Not Working



vjamacaddict
08-19-2005, 10:12 PM
My static background works in Internet Explorer and Webstractor. Not in Safari, Netscape, or Firefox. Is there someway to fix the code, so the static background will work with all/most browsers?

This is the webpage with the static background:

http://www.vjandrews.com/ClubsEventsForums.html


-- vjamacaddict, G4 iBook, OS X 10.3.9

mark87
08-19-2005, 10:22 PM
Don't use bgproperties="FIXED".

Use CSS... You've used inline CSS but really you should place it all at the top to make it a bit easier to edit, and then place it into an external file.

But to solve your problem, you should replace -

<body style="background-image: url(../imagesbg/celticbg05a.jpg);" bgproperties="FIXED">

With -

<body style="background: url(../imagesbg/celticbg05a.jpg) fixed;">

mrruben5
08-19-2005, 10:40 PM
Using html markup and css inline markup doesn't make sense to me.

Just use this then:

<body background="blabla.gif" bgproperties="fixed">

It's one way or another...

vjamacaddict
08-19-2005, 10:52 PM
Hey mark87, thanks! That is so tight man. The fixed background is working in Safari, Netscape, Firefox, IE, and Webstractor. Now, back to working on various menus, right now a menu bar ....


Don't use bgproperties="FIXED".

Use CSS... You've used inline CSS but really you should place it all at the top to make it a bit easier to edit, and then place it into an external file.

But to solve your problem, you should replace -

<body style="background-image: url(../imagesbg/celticbg05a.jpg);" bgproperties="FIXED">

With -

<body style="background: url(../imagesbg/celticbg05a.jpg) fixed;">

mark87
08-19-2005, 10:56 PM
Using html markup and css inline markup doesn't make sense to me.

Just use this then:

<body background="blabla.gif" bgproperties="fixed">

It's one way or another...

bgproperties is not a standard attribute...

"The property, for example, specifies whether the picture is a fixed watermark or scrolls with the page. This attribute/property is supported only by Microsoft Internet Explorer."

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/bgproperties.asp

No problem, vjamacaddict. :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum