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 trial

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
seal-mask
.a{fill-rule:evenodd;}techdegree
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

html
{
  height:100%;
 background-image:url('their image path') no-repeat;
 background-size:cover;
}

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;}

prlx_lyr_1{

position:fixed;
background: url(imgpath) no-repeat 0px 0px;
width:100%;
height:1080px;

}

prlx_lyr_2{

position:fixed;
background: url(imgpath);
width:100%;
height:900px;

}

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>