3 thoughts on “Like most things to do with CSS I’m not sure what I think of this.”
What? I thought the whole idea of CSS (as terrible as the actual CSS implementation is) was to abstract away presentation decisions from the document structure?
This article seems to be saying that if you decide your highlight colour should be red rather than blue, you should be relying on your code editor’s search-and-replace to do it?!
And what if you want two elements with a particular background colour – in their compiled CSS example, do you need to put in the same both places? What if you can’t remember hex codes off the top of your head?
Is this crazy, or am I completely missing the point of this?
No it’s as questionable as you said. I’ve done some of the things described here but not much. I think is most commonly used examples are things like grid layouts (bootstrap etc). Those really do mix the levels of abstraction.
What? I thought the whole idea of CSS (as terrible as the actual CSS implementation is) was to abstract away presentation decisions from the document structure?
This article seems to be saying that if you decide your highlight colour should be red rather than blue, you should be relying on your code editor’s search-and-replace to do it?!
And what if you want two elements with a particular background colour – in their compiled CSS example, do you need to put in the same both places? What if you can’t remember hex codes off the top of your head?
Is this crazy, or am I completely missing the point of this?
LikeLike
I went to the “source” document to see if I was missing the problem that this is the solution too, but it didn’t seem all that convincing to me.
smashingmagazine.com – Challenging CSS Best Practices
LikeLike
No it’s as questionable as you said. I’ve done some of the things described here but not much. I think is most commonly used examples are things like grid layouts (bootstrap etc). Those really do mix the levels of abstraction.
LikeLike