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.


How to change nav color and height on Bootstrap

Hey all,

I recently read the Treehouse blog about Twitter Bootstrap (great blog btw) and was curious how to change the height and the color of the nav bar.

I'm also curious why my nav bar in IE is screwed up : http://0.mk/fc98b

It looks good in all other browsers.

3 Answers

James Barnett
James Barnett
39,199 Points

@Beau -

Add this to the first line of all of your HTML files:

<!DOCTYPE html>

It will trigger standards mode rendering in Internet Explorer browsers.

31,206 Points

You can edit the CSS files to edit those two elements. The nav bar CSS class has a minimum height set in pixels, and the color for that class is also editable but with a few more changes required.

Opened the website in the latest version of IE, and it looks fine to me. What version were you viewing it on?

James Barnett
James Barnett
39,199 Points

@Sam Check out Adobe's Browser Lab to see the issue in IE9 and below.