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


how to create Compact (no scrolling) website means no scroll bar at the side of the browser

if i wanna create a website with no sidebar the whole content just fit to viewport only no scrolling how to do it

5 Answers

Shay Paustovsky
Shay Paustovsky
969 Points

It depends on how much content you have on the page, if it's short/long, because it's not always possible to strech a whole website on 100vh & vw

Hi Shay, one more how could i style the side/scroll bar means if i wanna change its color to red, how to could i access its proparties, is it the part of dom

Shay Paustovsky
Shay Paustovsky
969 Points

Unfortunately I don't know anything about styling a scrollbar, of course it would be a cool idea but not that I know anything about it :)


16,701 Points
body {
    height: 100vh;

Hello Tom, Do u know how to create a horizontally scrolling container with flex boxes for example if you search beast hollywood movies 2017 on google it will show a bunch of movies with images and titles respectively at the top so we can slide left to right or r to l

hi there, if you want to make a none scrolling page even if you have no content at all , then you have to make your footer stick to the bottom , and for making a horizontally scrolling container with sliding images , then you use what is called a slider , so my advice to you is to google , but the most important thing is to know how to google and find your specific answer , you can google (how to make a fixed to bottom footer) (how to make a slider) , and you will find a tons of answers . once you grasp your basics in html and css here at treehouse then you will be able to get your answers , focus on the basics at the beginning and if you got your basics then any advanced stuffs will be easy for you . good luck