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

Gareth Redfern
36,217 PointsResponsive Fixed Header
Does anyone know of a simple solution to create a fixed header that works on a responsive site where the header height will alter depending on the screen width?
3 Answers

Shawn Denham
Python Development Techdegree Student 17,801 PointsIf I am understanding your question you could just use media queries and change the height of your header at the various break points you set up.

Gareth Redfern
36,217 PointsThanks for the help on this guys I went with Shawn's suggestion. I don't think there is another simple way round it.

Adam Sackfield
Pro Student 19,663 PointsShawn's way is the correct way to do it.

Adam Sackfield
Pro Student 19,663 PointsHave a look at twitter bootstrap 3 they have it collapse to an icon. Im sure you could modify it in media queries to change height/