Log In · Register

 
 
Closed TopicStart new topic
random background, problems
trefloLFL
post Apr 25 2005, 04:40 PM
Post #1


Newbie
*

Group: Member
Posts: 5
Joined: Feb 2005
Member No: 97,484



i have the random generator working... theres no problem with that... its the way it is working. i want the background to be centered, fixed with no scrolling that way the whole page moves but the background doesnt... what change should i make?

here is my code:



QUOTE
codebox please! wink.gif


This post has been edited by gotnoheart: Apr 26 2005, 03:48 PM
 
talcumpowder
post Apr 25 2005, 05:41 PM
Post #2


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



CODE
<style type="text/css"> body { background-image: url('+ image[index] +'); background-repeat: fixed; background-position: center center;}</style>

^ That was taken and edited from the end of the code. Delete the original stuff from style type=text/css to style and replace it with the one I gave you.
 
trefloLFL
post Apr 26 2005, 03:19 PM
Post #3


Newbie
*

Group: Member
Posts: 5
Joined: Feb 2005
Member No: 97,484



thanks biggrin.gif

uhhh wait i wanted it to be no repeat fixed no scrolling........is that possible?
Posts Merged
 
*mona lisa*
post Apr 26 2005, 03:49 PM
Post #4





Guest






Please don't double post. Use the edit button. Thanks. And the code that nyah-nek0 gave you doesn't allow the background to scroll. It is fixed.
 
talcumpowder
post Apr 26 2005, 07:50 PM
Post #5


You'll find me in your dreams.
*******

Group: Official Member
Posts: 8,536
Joined: Mar 2005
Member No: 114,010



AHHHHHHH! I did it wrong. Sowwie.
CODE
<style type="text/css"> body { background-image: url('+ image[index] +'); background-repeat: no-repeat; background-attachment: fixed;background-position: center center;}</style>

I wasn't paying attention when I copied it... ^_^u
 
trefloLFL
post Apr 27 2005, 03:46 PM
Post #6


Newbie
*

Group: Member
Posts: 5
Joined: Feb 2005
Member No: 97,484



ah thanks.....i think thatll work
 

Closed TopicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: