4 ms·
I found one or two to not be so bad: > Elements can take more than one class This is pretty worthless for anyone who has ever looked at CSS. What's less obvi
by JeffJenkins 16y ago
I found one or two to not be so bad:
> Elements can take more than one class
This is pretty worthless for anyone who has ever looked at CSS. What's less obvious (and the article doesn't mention) is that you can select elements with more than one class using .classA.classB
> Relative and absolute addressing represent powerful magic
This is really, really important. But the article doesn't explain it well at all. Read this if you're interested: http://www.barelyfitz.com/screencast/html-training/css/positioning/ http://www.barelyfitz.com/screencast/html-training/css/posit...
- kilian 16y ago> What's less obvious (and the article doesn't mention) is that you can select elements with more than one class using .classA.classB ...Except in IE6. It's great otherwise. Relative and absolute positioning (and floats and display values) are the hardest parts of CSS. I wrote a three part explanation about it two years ago that also explains CSS's concept of "flow": http://kilianvalkhof.com/2008/css-xhtml/understanding-css-positioning-part-1/ http://kilianvalkhof.com/2008/css-xhtml/understanding-css-po...