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 Framework Basics Build a Website with Bootstrap Building the Navbar

Is it really best to make the logo a fixed width and height?

It just seems like by making the logo a specific size in pixels that it isn't flexible when on different devices and what not. Really would appreciate some insight on the appropriate way to size things like logos and images. When to use % and when to use px, em, etc.?

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

It just depends if you want your logo to scale, and how much you want it to scale..

Using a max-width with a percentage unit will ensure your scales to a particular size as the screen gets wider but then stop at a given size.

It's the same as just using a width with a percentage unit but using max-width: with a percentage unit gives you more control over your layout. :-)