Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   HTML / XHTML / CSS (http://www.programmingforums.org/forum27.html)
-   -   a set backround? (http://www.programmingforums.org/showthread.php?t=2815)

arod199113 Mar 17th, 2005 7:58 PM

a set backround?
 
i dont know if any of you ever had a desktop backround picture that wasnt big enough to fit the whole screen
but when when the preferences are set at "tile"(the other ones are "stretch" and "center")the picture diplays itself aligned to the left and top, then the picture repeats next to it and under it until the desktop is full of the same picture
i think you get my point
anyway... say i have a webpage and a backround picture(big enough to cover the whole screen)and when you scroll down the picture repeats
what if i wanted the picture to stay in the same place and everything else to scroll up and down
how would i do that?

Dizzutch Mar 17th, 2005 10:02 PM

you can use the fixed property of CSS to set that up.
Dizz

arod199113 Mar 18th, 2005 3:00 PM

im still fairly new to html(off and on for about only 2 weeks)
so i really dont know what you mean by "the fixed property of CSS"
if you or someone else could be a little more specific i would greatly appreciate it

Pizentios Mar 18th, 2005 3:29 PM

Well, yuor going to have to learn a bit of CSS to know what the fixed property is. You could also do it with javascript, but it wouldn't be pretty code, plus it's javascript....and we all know how much it sucks.

dayglowdave Apr 4th, 2005 4:14 PM

Correct me if I'm wrong but isn't also browser dependent? Like the fixed property will work in IE but not Mozilla? or maybe I'm thinking of something else :)

Ooble Apr 4th, 2005 5:02 PM

Nope... it's browser-independent:
:

background: #FFFFFF url("blah.jpg") no-repeat fixed;
That should do it.

MonkeyRevolution May 6th, 2005 3:51 PM

Also:
:

<body background="moo.jpg"  bgproperties="fixed">
if you want to do the HTML thing :)


All times are GMT -5. The time now is 7:56 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC