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


User style sheet and Author style sheet priority


Shouldn't the User style sheet have maximum importance ? I mean, if the user want's to have bigger fonts on all his visited website, why should the author be able to overwrite it ?

Shouldn't it be UA style sheet -> Author style sheet -> User style sheet ?

It is not the case and i'm wondering the reason why.

Thanks for the help. Regards

3 Answers

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Nicolas,

I see what you mean, but i suppose that if the author takes the time to build a website, then it should first be displayed how he intends it, or rather how he has been paid by the client to make it appear.
Then after that its down to the user to change that while browsing the site by using the accessibility features built into his or her browser.

Best answer I have.

Wayne Priestley
Wayne Priestley
19,579 Points

Hi Nicolas,

The Author stylesheet is the correct name given to the stylesheet that you as the web designer create your styles in, for example my-styles.css.
Thats why it goes last in the head section, it overrides all other stylesheets. (You are the author).

Hope this helps.

Hello Wayne,

Thanks for taking the time.

Yes I understand that but I don't understand the logic behind it. Let's say I can't see things properly and I (as a user) would like to see huge fonts on all the website i'm visiting. I therefore create a user style sheet which can be overriden by the author. Shouldn't the user style sheet have the maximum importance instead of the author style sheet. In the end what does it matter to the author if a user want's to override some styling on his page.

Regards Nicolas