News for hackers. Stuff that matters.

Ask HN: CSS The Right Way?

To piggy back on the recent post, 'Javascript: The Right Way?' [1], I ask the same question regarding CSS.

I find it very difficult to learn to do well. Any suggestions on how to go about doing so. Books, tutorials, great examples in Github, frameworks recommendations welcome.

[1] https://news.ycombinator.com/item?id=7074307

( 9 comments | 8 points | on HN )
Re:Ask HN: CSS The Right Way? by pablovidal85 on Friday January 17, 2014 @04:59PM (#7078714)
The best tip I can give anybody about mastering a language is "read other's code", pick some good project or author in github (use the search engine there) and read every line, try to understand the "character" of the language, how is constructed and organized, instead of the looking too much at the tokens (identifiers, statements, etc).
Re:Ask HN: CSS The Right Way? by codez on Friday January 17, 2014 @07:43PM (#7079487)
Well seeing as there is those other sites, how about we just make our own??

I can put together a page and we decide which things are important to know in CSS from opinion then when people want to disagree or contribute they can??

For example, important things IMO would be float when getting elements side by side, and how to correctly use position.

But what else?

How to do animations is a good one I think too.

EDIT: So I created a repo for this here https://github.com/jh3y/css-the-right-way

EDIT: Asked for help here. https://news.ycombinator.com/item?id=7079505

Re:Ask HN: CSS The Right Way? by 27182818284 on Friday January 17, 2014 @04:26PM (#7078522)
I'd like to know more too. I constantly feel like I am just blundering my way through CSS until it works or I get the CSS framework of the day to work for me. I'm at the level where I use LESS to compile to CSS, and I still feel like I'm just like a day 0 amateur
Re:Ask HN: CSS The Right Way? by chrisjlee84 on Friday January 17, 2014 @05:18PM (#7078835)
Re:Ask HN: CSS The Right Way? by breathesalt on Sunday January 19, 2014 @02:24PM (#7085576)
Re:Ask HN: CSS The Right Way? by isleyaardvark on Friday January 17, 2014 @04:54PM (#7078687)
Look up OOCSS and/or SMACSS. Twitter Bootstrap is an example of SMACSS principles at work.
Re:Ask HN: CSS The Right Way? by mattwritescode on Monday January 20, 2014 @05:25AM (#7088714)
Read others code and practise. Lots of practise.
Re:Ask HN: CSS The Right Way? by franklaemmer on Friday January 17, 2014 @05:01PM (#7078733)
Re:Ask HN: CSS The Right Way? by deadfall on Friday January 17, 2014 @06:18PM (#7079168)