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 CSS Basics (2014) Basic Layout box-sizing and max-width

BARBARA SHIMASAKI
BARBARA SHIMASAKI
3,177 Points

hi! I'm coding along in Sublime 2 and box-sizing isn't picking up the usual color given to valid properties -- why?

and it doesn't seem to be picked up in Chrome. Am I missing something? thnx

5 Answers

huckleberry
huckleberry
14,636 Points

It's just part of the syntax package within ST. Some keywords within CSS just don't highlight and I think it just comes down to the fact that the syntax highlighting hasn't been updated in a while and some things that weren't viable back when the highlighting was first designed are now used in CSS but the highlighting simply hasn't been re-worked.

You're fine, keep coding. Just, you know, be extra careful with your spelling on the things that don't offer any highlighting lol.

Cheers,

Huck - :sunglasses:

You should install the updated css3 package. https://github.com/i-akhmadullin/Sublime-CSS3

Ivan Franzone
Ivan Franzone
7,328 Points

Hello! If your browser is Google Chrome, you should add the property like my example:

-webkit-box-sizing: content-box;

huckleberry
huckleberry
14,636 Points

Hey bro,

Just to let you know, box-sizing is supported by all the major browsers and doesn't require prefixing :)

Check it out

Cheers,

Huck - :sunglasses: