View Single Post
Old 03-01-2018, 11:45 AM   #7
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,398
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Here's a full example:

Code:
<h1>title</h1><div><span>xx</span><p>magic</p><p>other</p>
<h1>title</h1><div><span>xx</span><p>magic</p><p>other</p>
Code:
h1 + div p:first-of-type {
  color: red;
}
this should result in *both* magic words being red, and only those.

Last edited by kovidgoyal; 03-01-2018 at 11:47 AM.
kovidgoyal is offline   Reply With Quote