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.

CSS

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 :)

cool

tomd
tomd
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