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
Responsive header background image
I'm having a little trouble with something, I'm wanting to make the image that I'm using as a background on my header to be responsive and size accordingly with different screen sizes.
the image itself is re-sizing but what I really want to do is make the actual area that the image is in bigger on different screen sizes.
Below is a snippet of my css
/* Header Layout ---------------*/
I've tried to re-size with a media query by adding padding to the bottom, whilst that does make the image bigger my text that is centered has a huge gap at the bottom to due the padding.
Any help with this would be greatly appreciate :)
Jennifer NordellTreehouse Teacher
My best suggestion is to try not making the padding in pixels but rather in percent. That way the percent should remain the same regardless of the screen size. Just a thought! :)
Actually I fixed the text! Thanks for your help! :D