Browse files

Add an info block about providing slice() with URLs

  • Loading branch information...
Colin Campbell
Colin Campbell committed May 18, 2011
1 parent 851bb90 commit e62ba04ba0202c1b534ed072e7a9f21bdaec1045
Showing with 2 additions and 0 deletions.
  1. +2 −0 source/chance.textile
@@ -245,6 +245,8 @@ identifying a rectangle:
+NOTE: The +@include slice()+ directive works just like the CSS +url()+ directive - linking to images is relative to where your CSS file is located. For instance, if your CSS file is located at +apps/your_app/resources/stylesheets/your_app.css+ and your image is +apps/your_app/resources/images/my_image.png+, your URL string would be +"../images/my_image.png"+.
You don't have to specify all parameters. For instance, if you only specify
a left, the rectangle will go from there to the right edge. If you only
specify a right, it will go from there to the left edge.

0 comments on commit e62ba04

Please sign in to comment.