Correction: it has to be a child selector, not a descendant selector
.viewer h1:first-child
without it works out to be a first child of ANY element inside
viewer.
You can also define many levels of first child of fist child ..., in
case the first header is wrapped in some other element but
h1 is styled to have 1.2em top margin. I like it, but not when h1 is
the first thing in a tiddler
Well, in theory you could use the :first-child selector:
.viewer h1 {
color: green;
}
.viewer h1:first-child {
color: red;
}
However, that's not very well
That is very cool, thank you. I only care about Firefox.
-- R.
On Apr 10, 4:56 am, FND f...@gmx.net wrote:
h1 is styled to have 1.2em top margin. I like it, but not when h1 is
the first thing in a tiddler
Well, in theory you could use the :first-child selector:
.viewer h1 {
3 matches
Mail list logo