Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of https://github.com/sproutcore/sproutguides

  • Loading branch information...
commit d98d4d2529302da6dbc9a2cf9f0cf897baabe191 2 parents 2c79650 + bd5a235
warp3d 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.