Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move URL note to correct location in Chance guide

  • Loading branch information...
commit bd5a235288d55eead57853df37bf3f9b9025e872 1 parent e62ba04
Colin Campbell authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 source/chance.textile
View
4 source/chance.textile
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.