Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

Commit 97274cd

Browse files
author
Alexander Vakrilov
committed
Merge pull request #113 from NativeScript/feature/background-props
Styling article: background-properties
2 parents 693baa5 + 9dd5895 commit 97274cd

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

styling.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,14 @@ This is the list of the properties that can be set in CSS or through the style p
158158
| CSS Property | JavaScript Property | Description |
159159
|:----------------|:-------------------|:----------------|
160160
| color | color | Sets a solid-color value to the matched view’s foreground. |
161-
| background-color | backgroundColor | Sets a solid-color value to the matched view’s background. |
162-
| background-image | backgroundImage | Sets a image url to the matched view’s background image. |
163-
| border-color | borderColor | Sets a border color to the matched view’s. |
164-
| border-width | borderWidth | Sets a border width to the matched view’s. |
165-
| border-radius | borderRadius | Sets a border radius to the matched view’s. |
161+
| background-color | backgroundColor | Sets a solid-color value to the matched view’s background. |
162+
| background-image | backgroundImage | Sets a image url to the matched view’s background image. |
163+
| background-repeat | backgroundRepeat | Sets if/how the background image should be repeated. Possible values: "repeat", "repeat-x", "repeat-y", "no-repeat" |
164+
| background-position | backgroundPosition | Sets the starting position of the background image. You can set the position with absolute, percent or aligment values. More info [here](http://www.w3schools.com/cssref/pr_background-position.asp). |
165+
| background-size | backgroundSize | Sets the size of the background image. Possible values: "*length length*", "*percent% percent%*", "cover" or "contain". |
166+
| border-color | borderColor | Sets a border color to the matched view’s. |
167+
| border-width | borderWidth | Sets a border width to the matched view’s. |
168+
| border-radius | borderRadius | Sets a border radius to the matched view’s. |
166169
| font | font | Sets the font properties(this includes font-family, font-size, font-style and font-weight) of the matched view. |
167170
| font-family | fontFamily | Sets the font family of the matched view |
168171
| font-size | fontSize | Sets the font size of the matched view (only supports device-independent units). |

0 commit comments

Comments
 (0)