Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Responsive Web Design and Testing Adding Breakpoints for Devices

does it take a pro to make a pager similar to treehouse introductory page?

i was planning to clone the introductory page of treehouse can anyone tell me how i can use multiple background images in a single page?i guess it all has to do with the postioning the elements right? now thats the treicky part for me

6 Answers

Fuad Adetoro
Fuad Adetoro
iOS Development Techdegree Student 11,599 Points

I think they should make a HTML and CSS topic called, building teamtreehouse pages... lol that would be something to actually look forward for

I think if I am correct all they are doing is

 background-image:url('their image path') no-repeat;

Just talking about the landing page image but I could be wrong but that would be my guess

Aj Villalobos
Aj Villalobos
1,864 Points

Oh, will the background-size: cover, handle all resolution? so that it will be the first-fold? I didn't know that.

i found the solution but i didnt understand can anybody explain? http://css-tricks.com/stacking-order-of-multiple-backgrounds/

nah ignore my solution.Its something known as parallax scrolling just goolge it they used it here and its pretty GOOD there are even courses offered for it and some vids so does anyone know about paralaxxing?

YAYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYy i DONE THAT IMAGE EFFECT here's the code: basically i used some java script to cretea a PARALAxxax EFEECT so IAM PRETTY HAPPY :DDDDDDDDDDDDDDDD CHACK THIS VID: https://www.youtube.com/watch?v=D75WTf_Y738 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <style type="text/css"> body{ margin:0px; background:url(img path) fixed;}


background: url(imgpath) no-repeat 0px 0px;



background: url(imgpath);


content_layer{ position:absolute; }

</style> <script> function parallax(){ var prlx_lyr_1 = document.getElementById('prlx_lyr_1'); var prlx_lyr_2 = document.getElementById('prlx_lyr_2'); prlx_lyr_1.style.top = -(window.pageYOffset / 14)+'px'; prlx_lyr_2.style.top = -(window.pageYOffset / 2)+'px'; } window.addEventListener("scroll", parallax, false); </script> </head> <body> <div id="prlx_lyr_1"></div> <div id="prlx_lyr_2"></div> <div id="content_layer"> <script> for(var i=5; i < 500; i++){ document.write('<h1>This is dummy line '+i+'</h1>'); } </script> </div> </body> </html>