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 CSS Basics (2014) Basic Layout Backgrounds: Size and Position

Mateo Znidar
Mateo Znidar
2,841 Points

background image size

how to align header background picture into full screen if the dimensions of my picure are different from my header element size. (if i put cover that cut my edges of picture) pls help

1 Answer

If you want your background image to be fully responsive on fixed height header, there's no way fully show on all screen sizes. Cover scales background image so that it always fills container. If you want your header height to change based on background image, you can use background image as normal image and absolute position other header content over the image.