Hershal
12-04-2003, 01:07 AM
I was wondering if there was a way i could freeze the backbround of a page and have just the text scroll
|
Click to See Complete Forum and Search --> : Back Ground Hershal 12-04-2003, 01:07 AM I was wondering if there was a way i could freeze the backbround of a page and have just the text scroll Pittimann 12-04-2003, 01:43 AM Hi! You're talking about the background image, aren't you? If so, there is a way working in IE only: <body background="PutPathToYourImageHere" bgproperties="fixed"> As far as I know, this is the only way, if talking about a "real" background image. You can of course achieve an effect like that, by putting an image in a div or another container with a certain position and size and text in another (scrollable) container at the same position with the same size and a z-index at least as much as the one of the image container... Cheers - Pit Hershal 12-04-2003, 04:26 PM is there any way i can set the background img to 100% fredmv 12-04-2003, 05:23 PM Originally posted by Hershal is there any way i can set the background img to 100% If you're referring to "strectching" the background image I don't believe that can be done using CSS. However, back to your original question, that can be done using CSS and will work in all browsers in which support CSS1:<style type="text/css"> /*<![CDATA[*/ body { background-image: url(foo.gif); background-attachment: fixed; } /*]]>*/ </script>Simply replace foo.gif to the filename in which you want to be displayed as the background for your page. Hershal 12-04-2003, 10:50 PM I am not understanding the <div> how would i format it to do what i want it to do? jdavia 12-04-2003, 11:40 PM Take a look at the source on these pages. The line at the end of the STYLE code. http://www26.brinkster.com/rwpaste/ A few of us members were working on it for fun. But it is in dead storage right now. It works in IE or NS7. webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |