Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialAshish Mehra
Courses Plus Student 31 PointsHow to create overlap effect using z-index on scrolling ?
hey all this is my personal website http://sitetrial11.netne.net/ here i want about and contact form should overlap the above <div> on scrolling how i can do that .!
Thanks
1 Answer
Kaitlyn Threndyle
18,204 PointsIf you're after the look I'm thinking of you'll want to apply the first image as a background image to the body in CSS and give it a positioning of fixed:
body {
background: url('../img/???.jpg') no-repeat center center fixed;
background-size: cover;
}
Is this what you mean by having the rest of the info overlap the top <div>?
http://blackrockdigital.github.io/startbootstrap-business-casual/
Ashish Mehra
Courses Plus Student 31 PointsAshish Mehra
Courses Plus Student 31 Pointsthanks it's work