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

Front End Dev Project 1 I am struggling to make the banner on my second page.

It have added the image but it is too big. I need to change the height so that it would be the same size as on the title page. Here is the CSS code:

header { text-align: center; background: url('images/1canyon.jpg') no-repeat top center ; background-size: cover; overflow: hidden; padding-top: 60px; } header { line-height: 1.5;

<header> <img src="images/1canyon.jpg" alt="Canyon_Image" class="banner-image" width = ”170” height = ”70”> </header>

1 Answer

Have you tried setting the width and height of the image?