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!

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