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 - Beyond the Basics Understanding CSS Transitions and Transforms Transition Timing Functions and Delays

Raowaa Mahmood
Raowaa Mahmood
3,337 Points

-moz-webkit-o prefixes

Greetings everyone,

I understand the concepts of prefixes for different browsers but do i have to use all three together when working on a source code, eg: for flexbox or transitions?

Thanks

1 Answer

Casey Ydenberg
Casey Ydenberg
15,622 Points

In theory, yes, the vendors' implementations of CSS features can vary so you need to treat each declaration as a new property.

Remember that things move fast on the web: for the specific properties you've mentioned, check out http://caniuse.com/#feat=flexbox and http://caniuse.com/#search=transitions ... vendor prefixes aren't needed for the most part anymore.

When you get a chance, try the Sass course - you'll be able to write mixins and abstract away chunks of CSS so you only have to write those once (or not at all, if you use a framework).

Raowaa Mahmood
Raowaa Mahmood
3,337 Points

Alright! thanks for the links Casey.
I have bookmarked SASS, will move on to it after this course :)

With regards to Sass, we have had good experience with Bourbon Framework for Sass. We have completely moved away from Bootstrap, for the most part, and are more satisfied with the ease with which this works.