Permalink
Browse files

Move URL note to correct location in Chance guide

  • Loading branch information...
1 parent e62ba04 commit bd5a235288d55eead57853df37bf3f9b9025e872 Colin Campbell committed May 19, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/chance.textile
View
@@ -228,6 +228,8 @@ To include an image, just pass the image name:
}
</css>
+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"+.
+
That puts the image as the background. It doesn't do any "slicing," however.
Where does the name come from?
@@ -245,8 +247,6 @@ identifying a rectangle:
}
</css>
-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 bd5a235

Please sign in to comment.