...

View Full Version : Test Box BackGround Static.



Morgoth
02-07-2004, 06:25 PM
Inside of my text box CSS code, I have set a background image for some visual effects ;)

.Mytextbox {
...
background-image: url(/images/box_shadow.png);
...
}

Now, my question is, how can I get this background image to be static, so that when I scroll my text areas the background stays still and doesn't move, just the text moves.

Is it possible?

Thanks for your help.

Edit: Topic Name Didn't Fix - I tried. "TEXT"

ez4me2c3d
02-07-2004, 07:19 PM
background-attachment: fixed;

or even shorter -

background: url(image.jpg) fixed;

coothead
02-07-2004, 07:20 PM
Hi there Morgoth,

Try it like this....

.Mytextbox
{
background:url(/images/box_shadow.png) fixed;
}

c:cool::cool:thead

Morgoth
02-07-2004, 07:44 PM
Originally posted by ez4me2c3d
background-attachment: fixed;

or even shorter -

background: url(image.jpg) fixed;


Originally posted by coothead
Hi there Morgoth,

Try it like this....

.Mytextbox
{
background:url(/images/box_shadow.png) fixed;
}

c:cool::cool:thead

Thank you both.
It worked.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum