Kyazi Posted March 13, 2014 Share Posted March 13, 2014 So I am working on a website and had the idea of having a silhouette image about 200px tall and stretch the whole page. The catch is (and I've googled and looks here for it) I need the image not in the background but infront of the website content and as you scroll down or up the website comes out from behind it. Any ideas coding wise? I'm stumped. -Thanks in Advance, K Link to comment Share on other sites More sharing options...
Ingolme Posted March 13, 2014 Share Posted March 13, 2014 An <img> element with position:fixed. Link to comment Share on other sites More sharing options...
Kyazi Posted March 13, 2014 Author Share Posted March 13, 2014 so nothing to do with z-index or placement wise for position... okay ill try that seems like it shouldnt be that simple lol but we shall see thanks. Link to comment Share on other sites More sharing options...
Ingolme Posted March 13, 2014 Share Posted March 13, 2014 You would only need the z-index property if you had other elements with absolute or fixed positions. Link to comment Share on other sites More sharing options...
Kyazi Posted March 13, 2014 Author Share Posted March 13, 2014 Thank you for your help I have it working now ^^ <3 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now