OpenTechSchool / html-css-beginners

A friendly, afternoon introduction to html and css.
opentechschool.github.io/html-css-beginners/
Other
21 stars 27 forks source link

Added a short note on hierarchy in the styles section and some typos fixed #28

Closed bastianalbers closed 10 years ago

bastianalbers commented 10 years ago

I added a short note on hierarchy in the styles section, as we show nesting elements in HTML and i want to make sure people don't wonder why nesting doesn't work in CSS. Also later on we show how to style an ul with nested li elements so i thought a short notice how you can do more specific rules was appropriate there.

xMartin commented 10 years ago

Showing how things are not done is usually not the best way. How about just explaining that writing selectors next to is other is creating hierarchy? Have lots of people tried to do the nesting?

bastianalbers commented 10 years ago

Yes, maybe confusing. I just felt something had to be said there but maybe it is a little too much and confusing. I don't really remember, but specifity is something everyone needs pretty quick. But maybe it is something we could teach people who are quick in the end. You should still merge the fixed typos though.

xMartin commented 10 years ago

How about just removing the not working examples? Otherwise I think it's helpful. Just "this is how you do it" minus the "this is how you not do it".

bastianalbers commented 10 years ago

Ok, changed it up a little to show that a more specific rule beats a less specific one and left out the negative example