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

Steps Cascade Follows [Importance]

In the video tutorial, Guil says that by default Author Style Sheet have more importance than User Style Sheet and User Agent Style Sheet. but what User Style Sheet means ? is User Style Sheet mean when I open style tags on the head of a document ? because if is then User Style Sheet is Heaviest than User Agent Style Sheet.

1 Answer

No, open style tags are part of the Author Stylesheets, but they are called embedded stylesheets (in opposition of external stylesheets). Basically an "User Style sheet" is a style sheet that applies on every page of the browser, not only for a specific site/domain, but which are not part of the built-in "User Agent Style sheets". That means that you can define "global styles" for your browser that will take precedence over user agent style sheets but not over author style sheets (unless you use !important which I strictly don't recommend)

In Firefox for example you do that in the Firefox profiles folder. For Chrome I don't know but it probably has to do with some settings.

oh!, I get it, Thanks that was help-full !!