ralphm
1
I really enjoyed this article on the “The lobotomized owl selector”: http://alistapart.com/article/axiomatic-css-and-lobotomized-owls
Basically, it argues for something like this:
* + * {
margin-top: 1.5em;
}
over something lie this:
.element {
margin-top: 1.5em;
}
(See the specific demo of this here.)
1 Like
PaulOB
2
Yes interesting article and technique.
I’d be interested to try it in a new project and see if it works without having to make too many exceptions.
I do tend to style things with h2 + p or similar anyway so the ‘owl’ could be a useful short cut.
1 Like
ralphm
Closed
3
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.