Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Move URL note to correct location in Chance guide
  • Loading branch information
Colin Campbell committed May 19, 2011
1 parent e62ba04 commit bd5a235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/chance.textile
Expand Up @@ -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?

Expand All @@ -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.
Expand Down

0 comments on commit bd5a235

Please sign in to comment.