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

JavaScript AJAX Basics (retiring) Programming AJAX Processing JSON Data

Jose Linares
Jose Linares
5,062 Points

What is this?

I know what is box-sizing but I have found in a lot of places that these 2 lines always come whit it like this: -webkit-box-sizing: border-box; -moz-box-sizing: border-box;

What are they?

3 Answers

Kevin Jenkins
Kevin Jenkins
12,630 Points

Some browsers require vendor-specific properties to enable CSS features. The -webkit enables flexbox support in Safari and -moz in Firefox, for example.

Kevin's answer is correct but to add to his answer you can stay informed as to what is supported and by which browsers by using the caniuse website.

CanIUse shows which browsers support your searched elements and it lets developers know which browsers support those elements, which require vendor-prefixes and which have no support at all. As of right now, box-sizing is widely supported and do not require vendor-prefixes.

I hope this helps.

Jose Linares
Jose Linares
5,062 Points

It did help Chyno. Thanks