PDA

View Full Version : Scroling background



Helpie
27-03-2007, 05:14 PM
Any one got the code where the background scrolls when you scroll down :D

F32
27-03-2007, 05:17 PM
Errrr what?

Mr.Sam
27-03-2007, 05:19 PM
do you mean either;

fixed background - scrolls with the screen.
repeating background - repeats multiple times.

?


Any one got the code where the background scrolls when you scroll down :D

Helpie
27-03-2007, 05:20 PM
do you mean either;

fixed background - scrolls with the screen.
repeating background - repeats multiple times.

?

Fixed background. Sorry didnt quite know what i was called. But like clubhabbo.net

Lysine
27-03-2007, 05:21 PM
Add this in your CSS


background-repeat:repeat-y;
background-attachment: fixed;
background-repeat: repeat;

R
27-03-2007, 05:21 PM
google it?

Helpie
27-03-2007, 05:27 PM
background-image: url(file:///C|/Documents%20and%20Settings/Admin/Desktop/bottom_background.png); background-color: #53BAE5; background-repeat:repeat-y;
background-attachment: fixed;
background-repeat: repeat;

This right?

Mr.Sam
27-03-2007, 05:29 PM
you'll need to upload the background not use the folder shortcut.


background-image: url(file:///C|/Documents%20and%20Settings/Admin/Desktop/bottom_background.png); background-color: #53BAE5; background-repeat:repeat-y;
background-attachment: fixed;
background-repeat: repeat;

This right?

F32
27-03-2007, 05:30 PM
google it?
That ain't clever young man.

Sounds good ;)

Helpie
27-03-2007, 05:46 PM
background-image: url(images/bottom_background.png);
background-color: #53BAE5;
background-repeat:repeat-y;
background-attachment: fixed;
background-repeat: repeat;
}

This code, I have put in www.habbocouncil.co.uk (http://www.habbocouncil.co.uk) But wont stick?
sorry to be so annoying but im a noob lol

Sunny.
27-03-2007, 06:25 PM
works fine?

Helpie
27-03-2007, 06:27 PM
Yes does now lol :D Thanks for your help people

Hypertext
27-03-2007, 06:37 PM
<style type="text/css">
<!--
body {
background-image: url(images/bottom_background.png);
background-color: #53BAE5;
background-repeat:repeat-y;
background-attachment: fixed;
background-repeat: repeat;
}
-->
</style>
YUUCK!
Never, never, never use css in your header.
1. Increases load time.
2. You have the <link> tag, but, why isn't that css in style.css :S
Sort it michael.
Also, rename all pages to .php instead of html [ONLY HTML PAGES DONT RENAME YOUR CSS ETC] TRUST ME once you want to add news reports etc.. having 300 odd files is a real bum to change all, trust me i've done it b4.

Want to hide these adverts? Register an account for free!