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

June 22nd, 2005, 12:37 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

June 22nd, 2005, 01:12 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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.
|
|

June 22nd, 2005, 01:19 PM
|
|
Friend of Wrox
|
|
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
|

June 22nd, 2005, 01:31 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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
|
|

October 11th, 2006, 08:01 AM
|
|
Registered User
|
|
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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!
|
|

October 11th, 2006, 01:07 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
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?
|
|

October 11th, 2006, 01:36 PM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
|
|
(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
|
|
 |