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

what is this webkit mumbojumbo

is it just for your website to remain the same throughout different browsers? i see like you add that thing in many diffferent selectors in css. can i just add it once with a *? seems like a haggle.

if i use normalize.css, is that good enough.

and also all these css videos seem to add extra stuff for compatibility with internet explorer. like who in their right mind would even use ie. if i create a website one day, if someone is using internet explorer visits my site then i dont even want them to visit my site.

1 Answer

Tim Hartwick
Tim Hartwick
745 Points

-webkit is what's called a vendor prefix. One of the reasons we have them is so that we can use cutting edge stuff that may only be supported in Chrome (webkit), Firefox (moz), or any other browser. Unfortunately, you can't just add -webkit using the *. The * is a selector, not a rule, which is where the -webkit prefix is used.

If you're comfortable using something like Sass or Less, to precompile your CSS you can use something called an Auto Prefixer that will magically just add all the webkit stuff for you.

Normalize.css won't avoid the need to use webkit.

Finally, you'd b pretty surprised at the amount of users on IE that make up the Internet. The most recent number shows that they're still around 25% of all users online. You can of course, set up an analytic tool, like Google Analytics, to see if your audience is using IE.

Hope this helps!