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

what CSS Properties i can use to see full HD video without having to scroll.

I am wanting to use an HD video as my background, but i am having trouble sizing it. see below my current CSS below. I am not able to see the full video without scroll and I don't see the top portion of the video, please help.

.section { position: absolute; top: 0; bottom: 0; width: 100%; height: 100%; overflow: hidden; }

.video-container video { min-width: 100%; min-height: 100%;

width: auto;
height: auto;

position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);

}

1 Answer

Steven Parker
Steven Parker
231,248 Points

The CSS is only part of the code. To share everything at once, make a snapshot of your workspace and post the link to it here.