Skip to content

Commit

Permalink
* readme.textile: ahh textile
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Mar 16, 2010
1 parent 5f5af99 commit 6362c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.textile
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ We only want to match the first ul element that we find that has the content cla
.content:nth-of-type(1) > *:first-child
</pre>

It's important to note that using <code>nth-of-type</code> requires an extra pair of brackets around the element that matches <code>:.content</content>. This extra pair of brackets is easy to forget. Whenever you want to be more specific about what type of element you want to match (beyond matching on CSS id or class) you'll need an extra pair of brackets.
It's important to note that using <code>nth-of-type</code> requires an extra pair of brackets around the element that matches <code>:.content</code>. This extra pair of brackets is easy to forget. Whenever you want to be more specific about what type of element you want to match (beyond matching on CSS id or class) you'll need an extra pair of brackets.

Now that we have our selector <code>defsnippet</code> will look like the following (don't forget that <code>html</code> is just an alias for <code>net.cgrand.enlive-html</code>):

Expand Down

0 comments on commit 6362c93

Please sign in to comment.