Ask HN: What is the best way to learn CSS
Hi,
I am an experienced backend engineer with fairly good graps of HTML and JS. But I always have trouble making reasonably good looking websites mainly because I find CSS hard to understand.
How did you learn CSS? What efficient ways would you recommend for me, keeping in mind I can spend only 5-6 hours a week.
Thanks
12 comments
[ 3.2 ms ] story [ 37.2 ms ] threadMaking good looking website is design and design is a problem, a wicked problem[1]. These are the steps that I personally take to make okay looking stuff:
1. Look at templates and real world websites in the same field/subject and cherry pick features that you like.
2. Implement the layout and components with only structural css parts.
3. Add/Optimize color/style.
4. Refine layout.
5. Go to 3 if not satisfied.
Or my other approach is to start with Bootstrap or Zurb.
1. Pick A "framework"
2. Build the layout and select components.
3. Refine the framework defaults (in bootstrap, you mostly change stuff in variables.less)
4. Add your own styling.
5. Go to 3 if not happy.
[1] http://en.wikipedia.org/wiki/Wicked_problem
Edit: Indent.
[0] https://smacss.com/
[1] http://codepen.io
jtfairbank+hn /at/ gmail /dot/ com
The best book I've found as a programmer is Stylin' with CSS: A Designer's Guide by Charles Wyke-Smith. Not as much BS, cuts to the chase.
Second: start with simple styleshheet and build from there. Don't buy into the ultra fancy complex stuff till you feel ready; there a lot of good result you can get from just the basics.