Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-19-2005, 10:12 PM   PM User | #1
vjamacaddict
New to the CF scene

 
Join Date: Aug 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
vjamacaddict is an unknown quantity at this point
Static Background Not Working

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
vjamacaddict is offline   Reply With Quote
Old 08-19-2005, 10:22 PM   PM User | #2
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
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;">
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Old 08-19-2005, 10:40 PM   PM User | #3
mrruben5
Regular Coder

 
Join Date: Nov 2004
Location: The Netherlands
Posts: 551
Thanks: 0
Thanked 0 Times in 0 Posts
mrruben5 is an unknown quantity at this point
Using html markup and css inline markup doesn't make sense to me.

Just use this then:
Code:
<body background="blabla.gif" bgproperties="fixed">
It's one way or another...
__________________
CATdude about IE6: "All your box-model are belong to us"
mrruben5 is offline   Reply With Quote
Old 08-19-2005, 10:52 PM   PM User | #4
vjamacaddict
New to the CF scene

 
Join Date: Aug 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
vjamacaddict is an unknown quantity at this point
Static Background Working! Thanks!!

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

Quote:
Originally Posted by mark87
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;">
vjamacaddict is offline   Reply With Quote
Old 08-19-2005, 10:56 PM   PM User | #5
mark87
Senior Coder

 
Join Date: Dec 2004
Location: Essex, UK
Posts: 2,636
Thanks: 0
Thanked 0 Times in 0 Posts
mark87 is on a distinguished road
Quote:
Originally Posted by mrruben5
Using html markup and css inline markup doesn't make sense to me.

Just use this then:
Code:
<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/de...properties.asp

No problem, vjamacaddict.
__________________
markaylward.co.uk
mark87 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:09 AM.


Advertisement
Log in to turn off these ads.