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

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.

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