PDA

View Full Version : Myspace layout coding


DarylVTR
28th March 2007, 22:45
Hey guys, Quick question to get your brain going.

I have created a myspace layout for some1 and they wanted a logo at the top of their page in the background which i have managed to do but when they scroll down the background image moves with it. (The logo moves down so it is always at the top of whichever section of the page your on)

I want it to be fixed to the top so when you scroll down, like a normal site, it stays at the top. The coding says background-attachment: fixed;

but that hasnt done it. Changed it to scroll and still no luck.

So basically i want the tables / boxes to be fixed to the background instead of scrolling over it if that makes sense. Wondered if any of you wizz kids knew anything im missing. :drink:


If you need to see what i mean here you go:

www.myspace.com/hardlyheroes06

(The banner at the top moves down as you scroll down unlike a normal site)

But on here it doesn't!

http://www.myspace.com/madelate

I can't find the coding to do this..... not even stealing it from that site that works as i dont know what code im looking for this problem.

SNewham
28th March 2007, 22:47
take a look at this mate:

http://backgroundsarchive.com/myspace/myspace2.php

SNewham
28th March 2007, 22:50
it shouldn't scroll by the method you have suggested there.

background-attachment:fixed

should prevent that.



example:
<style>
body {
background-image:url(your image);
background-attachment:fixed;
}
</style>


scott

DarylVTR
28th March 2007, 22:55
exactly. I dont get it. Must be missing something though otherwise it would work?

DarylVTR
28th March 2007, 23:04
my personal myspace is also like it and that has the same line in it

background-attachment: fixed;

DarylVTR
29th March 2007, 20:39
anyone ??????????????