On 15 Jun 2006, at 00:20, Bruce Gilbert wrote:

> I have a div filled with text that I am creating scrolling
> functionality using DHTML. I am having a CSS issue because my
> background image was scrolling along with the text, and I wanted it to
> remain put (static), so I tried this:
>
> #col_2_scroll{
> position: absolute;
> left:575px;
> top:265px;
> width:450px;
> font-family:arial, helvetica, sans-serif;
> color:#336666;
> margin:35px 65px 0 0;
> height:auto;
> background:url('/images/background/scrolling_div_bg.png') no-repeat;
> background-attachment:scroll;
> padding:0 0 0 25px;
> }
>
>
> and that makes the background image dissapear in my testing which is
> being done on safari and firefox. I don't have a link I can show, but
> was hoping someone could offer some assistance based on the info
> given.
> --  
> ::Bruce::

Hi Bruce,

If you want your background to be fixed, then:

background-attachment:scroll;

should be:

background-attachment:fixed;

Also, I think:

overflow: auto;

To ensure you get a scrollable div.

Let us knwo how you get on, or if you get a link you can show us if  
you are still stuck.

-Tom


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to