Problem description:
Ran across this and I'd like to know exactly how they did this, I'd like to give it a try.
http://www.byond.com/games/darkmoonproductions/ narutofinalfight
After playing with it I figured out what you pointed out.
What I can't figure out is, how they get the image to display in the background. Directly copy and pasting this code as a test basically just pastes their hub directly into the edit box area of my hub. |
The DIV that contains the background image is set to position: fixed and a z-index of -1. That will pop it out of the page flow hierarchy and lay it under just about anything else on the page.
|
In response to Ter13
|
|
Except..it doesn't seem to be working.
I get that it "should" work. It's just not. |
No clue. I disagree with your "should" work bit. This definitely shouldn't work.
|
All they did was mess around with the z-index to place it behind everything else as Ter13 has already said. Just take a look at z-index and have a play around with a test hub, if all else fails Google z-index and find out how to layer properly.
Edit: You could always just go crazy and override the entire website with !important, but then nobody would visit your hub... |
In response to Sillenium
|
|
This has been solved relatively. Also what you said is only half true. There's more to it than that. Thanks tho.
|
In response to Avidanimefan
|
|
Would you care to share?
|
Would you care to share? It's a bad idea to share the solution to this because it involves a security hole that should never have happened. Like I said above: "This definitely shouldn't work." |
In response to Ter13
|
|
Oh I see. I guess it would do more harm than good to share it in that case.
|
The first few lines in particular appear to be the ones dictating the images that show up in the "background."