PDA

View Full Version : mimic background-attachment: local in FF



prophetofjah
Aug 23rd, 2007, 10:27 PM
Howdy,
Does anyone know how I could mimic background-attachment: local; (currently background-attachment: scroll; in ie) in firefox?

I would like to have my background image scroll with the content of a div.

Thanks,
PoJ

ahallicks
Aug 24th, 2007, 02:28 AM
If you set a background-image on a div that has overflow properties the background should automatically scroll without you having to use any code for background-attachment. Can't say I've ever heard of background-attachment: local; either? Do you have any other code you are using or a link to your page? I'm curious to see where you want this implemented.

prophetofjah
Aug 24th, 2007, 02:44 PM
Howdy,
The background-attachment: local; is a css3 style. However, ie currently renders background-attachment: scroll; exactly like background-attachment: local; will render with css3. I got this info here:

http://www.quirksmode.org/css/background.html


Here is a link to a page I am working on:
http://www.unforgettablesmile.com/los-angeles-cosmetic-dentist.html

I want the background image of the div to scroll with the text. It works in IE, but not FF.

Thank You,
PoJ

prophetofjah
Aug 29th, 2007, 12:18 AM
Here is the solution I found:
http://www.webmasterworld.com/css/3263067.htm

Thanks,
PoJ