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
ID:2006737
![]() Dec 27 2015, 11:36 pm (Edited on Dec 29 2015, 10:07 am)
(See the best response by Ter13.)
|
|
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.
|
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... |
This has been solved relatively. Also what you said is only half true. There's more to it than that. Thanks tho.
|
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." |
The first few lines in particular appear to be the ones dictating the images that show up in the "background."