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

CSS

100% height background color

what css should i use to make the 50% width web page have full 100% height background color?

Try to use the background-size property. :D

3 Answers

Steven Parker
Steven Parker
243,318 Points

Why doesn't it already have full height? Are you coloring the body element, or something inside that is not full height?

You might try this:

  height: 100vh;

Otherwise, show your code to facilitate analysis and a more specific answer.

I have done the body with full height image and i am trying to do the 35% navbar full height color black for examble

Steven Parker
Steven Parker
243,318 Points

To make it possible to give you a more specific answer, show your code. Even better, make a snapshot of your workspace and post the link to it here.

ok i will do it when i will watch the video