Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 22nd, 2005, 12:37 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default Fixed Backgrounds Not Liked By Firefox

Hi guys,

Yesterday, I was working on a couple of new skins for my forums at http://flashkid105.proboards40.com/index.cgi. One of the skins uses a fixed background but I found out in the testing phase that the fixed background stuff won't work in Firefox because that browser apparently doesn't like fixed backgrounds at all. Is there a way to get around this limitation so the fixed backgroun skin will work in FF?

I can post code if need be:D

Thanks in advance,



Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
__________________
Ben Horne
-------------------------
I don\'t want to sound like I haven\'t made any mistakes. I\'m confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
 
Old June 22nd, 2005, 01:12 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well well isn't that our Ben....

I think this is a (known??) issue with FireFox. I had that a while ago in a site too. The fix was to drop the semi colon after the fixed value. To make other styles after the background-attachment work you'll need to insert a bog property, or another property that doesn't do any harm:

#SomeObject
{
  background-attachment: fixed
  useless: none;
}

You could replace useless: none; with something like margin: 0; or anything else that just restates something you defined earlier.

HtH,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 22nd, 2005, 01:19 PM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Thanks Imar,

This is actually how the background attachment code looks

Code:
background="http://www.geocities.com/valerian5200/BigBang.jpg" bgproperties="fixed">
Ben Horne
-------------------------
I don't want to sound like I haven't made any mistakes. I'm confident I have.

Most likely using FireFox and concocting my next Macromedia Flash project
Snibworks Forums Moderator

Welcome to the New Age
 
Old June 22nd, 2005, 01:31 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Right, that explains a lot. bgproperties is a Microsoft extension that only works on IE. It's not part of any standard: http://msdn.microsoft.com/library/de...properties.asp

Use CSS instead as in the example I showed you....

Cheers,

Imar
 
Old October 11th, 2006, 08:01 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the help Imar, the css really works, and might I add that this bug is one of the most absured I've encountered in my life as a developer!

 
Old October 11th, 2006, 08:18 AM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

Anyone have a test case of this? I've never heard of this bug and would like to see it. Fixed backgrounds have always worked for me in Firefox. If it's a common bug, I might write about it in my next CSS book.

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html
 
Old October 11th, 2006, 01:07 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi Rich,

(Long time no speak....)

It's been a while since I ran into this. I had this in our corporate site, that's been replaced with a new version some time ago.

I'll see if I can dig up something from our source control system. I'm sure I'll forget this promise, so feel free to remind me when you start your new book....;)

Cheers,

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
While typing this post, I was listening to: Six Days At The Bottom Of The Ocean by Explosions In The Sky (Track 3 from the album: The Earth Is Not A Cold Dead EP) What's This?
 
Old October 11th, 2006, 01:36 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

(Long time no speak....)

Time flies!

> It's been a while since I ran into this. I had this in our corporate site, that's been replaced with a new version some time ago.

No worries. If you can't easily recall what it was, don't go out of your way on my account.

> I'll see if I can dig up something from our source control system. I'm sure I'll forget this promise, so feel free to remind me when you start your new book....;)

Already under way :-) I'm a little over half finished. We're being somewhat secretive about it, I suppose, so mail me if you'd like to hear more details. ;) It's a pretty exciting project...

Take care!

Regards,
Rich

--
Author,
Beginning CSS: Cascading Style Sheets For Web Design
CSS Instant Results

http://www.catb.org/~esr/faqs/smart-questions.html





Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed table columns darkhalf HTML Code Clinic 1 August 27th, 2008 02:05 AM
Datagrid fixed header Swopna .NET Framework 1.x 1 March 22nd, 2008 11:06 AM
Web controls as backgrounds??? RichardLaw ASP.NET 2.0 Basics 0 October 20th, 2006 03:59 AM
Fixed tables and/or fixed bkgrnd in tables slg111875 Dreamweaver (all versions) 1 June 22nd, 2006 02:31 PM
fixed positioning mackknife BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 1 May 8th, 2005 10:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.