css.md

October 15, 2018 ยท View on GitHub

css : object

Kind: global namespace

css.color

Specifies the text color for an element.

Supported color formats are as follows:

Kind: static property of css
See

css.border-top-color

Specifies the border color for an element's top border.

Supported color formats are as follows:

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

Kind: static property of css
See

css.border-left-color

Specifies the border color for an element's left border.

Supported color formats are as follows:

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

Kind: static property of css
See

css.border-right-color

Specifies the border color for an element's right border.

Supported color formats are as follows:

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

Kind: static property of css
See

css.border-bottom-color

Specifies the border color for an element's bottom border.

Supported color formats are as follows:

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

Kind: static property of css
See

css.background-color

Specifies the background color for an element.

Supported color formats are as follows:

Kind: static property of css
See

css.border-top

Shorthand for specifying the style, color, and width of the top border.

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-top

css.border-left

Shorthand for specifying the style, color, and width of the left border.

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-left

css.border-right

Shorthand for specifying the style, color, and width of the right border.

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-right

css.border-bottom

Shorthand for specifying the style, color, and width of the bottom border.

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-bottom

css.border-top-style

Specifies the style of the top border.

Warning

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-top-style

css.border-left-style

Specifies the style of the left border.

Warning

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-left-style

css.border-right-style

Specifies the style of the right border.

Warning

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-right-style

css.border-bottom-style

Specifies the style of the bottom border.

Warning

The only visible border style that is supported is solid.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-bottom-style

css.border-top-left-radius

Sets the top left border radius.

Warning

If you need to clip an image, be sure to set overflow: hidden.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-top-left-radius

css.border-top-right-radius

Sets the top right border radius.

Warning

If you need to clip an image, be sure to set overflow: hidden.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-top-right-radius

css.border-bottom-left-radius

Sets the bottom left border radius.

Warning

If you need to clip an image, be sure to set overflow: hidden.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-bottom-left-radius

css.border-bottom-right-radius

Sets the bottom right border radius.

Warning

If you need to clip an image, be sure to set overflow: hidden.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-bottom-right-radius

css.opacity : float

Sets the opacity of an element. The value is between 0 (transparent) and 1 (opaque).

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/opacity

css.overflow

Shorthand which determines what is done with content that overflows the element's bounds.

Supports visible, hidden, auto, and scroll`.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/overflow

css.overflow-x

Determines what is done with content that overflows the element's horizontal bounds.

Supports visible, hidden, auto, and scroll`.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/overflow-x

css.overflow-y

Determines what is done with content that overflows the element's vertical bounds.

Supports visible, hidden, auto, and scroll`.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/overflow-y

css.background-image

Specifies a background image.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/background-image

css.border-color

Specifies the border color for an element.

Supported color formats are as follows:

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

Kind: static property of css
See

css.border-radius

Shorthand for specifying the border radius

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-radius

css.border-radius

Shorthand for specifying the border width, color, and style.

Supported color formats are as follows:

Warning

An element's border can only consist of a single color. If you specify multiple border colors, you'll see a warning on the JavaScript console.

Kind: static property of css
See

css.background

Shorthand for specifying the background of an element. Supports colors, images, and linear gradients.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/background

css.margin-top

Specifies the top margin.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/margin-top

css.margin-left

Specifies the left margin.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/margin-left

css.margin-right

Specifies the right margin.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/margin-right

css.margin-bottom

Specifies the bottom margin.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/margin-bottom

css.width

Specifies the width of an element.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/width

css.height

Specifies the height of an element.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/height

css.max-width

Specifies the maximum width of an element.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/max-width

css.max-height

Specifies the maximum height of an element.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/max-height

css.min-width

Specifies the minimum width of an element.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/min-width

css.min-height

Specifies the minimum height of an element.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/min-height

css.top

Sets the top position of the element when relatively or absolutely positioned.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/top

css.left

Sets the left position of the element when relatively or absolutely positioned.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/left

css.right

Sets the right position of the element when relatively or absolutely positioned.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/right

css.bottom

Sets the bottom position of the element when relatively or absolutely positioned.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/bottom

css.padding-top

Specifies the top padding.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/padding-top

css.padding-left

Specifies the left padding.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/padding-left

css.padding-right

Specifies the right padding.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/padding-right

css.padding-bottom

Specifies the bottom padding.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/padding-bottom

css.border-top-width

Specifies the width of the top border.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-top-width

css.border-left-width

Specifies the width of the left border.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-left-width

css.border-right-width

Specifies the width of the right border.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-right-width

css.border-bottom-width

Specifies the width of the bottom border.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-bottom-width

css.flex-basis

Specifies the value used for calculating the flex basis.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/flex-basis

css.flex-grow

Sets the flex grow factor.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/flex-grow

css.flex-shrink

Sets the flex shrink factor.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/flex-shrink

css.order

Sets the order of display for this flex element.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/order

css.flex

Shorthand for setting flex-grow, flex-shrink, and flex-basis.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/flex

css.border-width

Specifies the width of the element's border.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/border-width

css.margin

Shorthand for setting the element's margins.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/margin

css.padding

Shorthand for setting the element's padding.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/padding

css.font-family

Renders the element using the specified font family, if installed on the user's machine.

Danger

Fallbacks are not supported. Don't use quotes with this value.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/font-family

css.letter-spacing

Sets the distance between letters.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/letter-spacing

css.font-size

Sets the font size.

Kind: static property of css
See: https://developer.mozilla.org/en/docs/Web/CSS/font-size

css.align-content

Kind: static enum of css
Properties

NameDefaultDescription
"flex-start"0Align to the starting position
"flex-end"1Align to the ending position
center2Align to the center
"space-between"3Add space between the elements
"space-around"4Add space around the elements
stretch5Stretch content

css.align-items

Kind: static enum of css
Properties

NameDefaultDescription
"flex-start"0Align items to the start
"flex-end"1Align items to the end
center2Align items to the center
baseline3Align items to baseline (UNSUPPORTED)
stretch4Stretch items

css.align-self

Kind: static enum of css
Properties

NameDefaultDescription
auto0
"flex-start"1Align to start
"flex-end"2Align to end
center3Align to center
baseline4Align to baseline (UNSUPPORTED)
stretch5Stretch

css.units

Kind: static enum of css
Properties

NameDefaultDescription
px0Pixel units (default)
"%"1Percentage

css.background-attachment

Kind: static enum of css
Properties

NameDefaultDescription
scroll0The background image scrolls along with content. Default.
fixed1The background image is fixed while scrolling. UNSUPPORTED.
local2UNSUPPORTED.

css.background-repeat

Kind: static enum of css
Properties

NameDefaultDescription
"no-repeat"0Don't repeat the background image; default.
repeat1Repeat the background image in both axes. UNSUPPORTED.
"repeat-x"2Repeat the background image in horizontally. UNSUPPORTED.
"repeat-y"3Repeat the background image in vertically. UNSUPPORTED.

css.background-size

Kind: static enum of css
Properties

NameDefaultDescription
auto0Automatically size the background image; default.
contain1Contain the image within the bounds of the element without altering the aspect ratio.
cover2Ensure that the image fills the bounds of the element without altering the aspect ratio.

css.border-style

Kind: static enum of css
Properties

NameDefaultDescription
none0No border
hidden1Hidden border
dotted2Dotted border; UNSUPPORTED
dashed3Dashed border; UNSUPPORTED
solid4Solid border
double5Double border; UNSUPPORTED
groove6Grooved border; UNSUPPORTED
ridge7Ridged border; UNSUPPORTED
inset8Inset border; UNSUPPORTED
outset9Outset border; UNSUPPORTED

css.display

Kind: static enum of css
Properties

NameDefaultDescription
none0Don't display the item; removes from layout.
flex1Display using flexbox layout.
block2Display using block layout; default.
inline3Display using inline layout; UNSUPPORTED.
"inline-block"4Display using inline-block layout; UNSUPPORTED.
"inline-flex"5Display using inline-flex layout; UNSUPPORTED.

css.flex-direction

Kind: static enum of css
Properties

NameDefaultDescription
row0Layout in a horizontal (row) direction
"row-reverse"1Layout in a horizontal (row) direction, but reverse the order of elements
column2layout in a vertical (column) direction
"column-reverse"3layout in a vertical (column) direction, but reverse the order of elements

css.flex-wrap

Kind: static enum of css
Properties

NameDefaultDescription
nowrap0Don't wrap; default.
wrap1Wrap
"wrap-reverse"2Wrap, reverse; UNSUPPORTED.

css.font-style

Kind: static enum of css
Properties

NameDefaultDescription
normal0Normal font style; default.
italic1Italic (if the font supports it).

css.font-weight

Kind: static enum of css
Properties

NameDefaultDescription
normal0Normal font weight; default.
bold1Bold font weight.
lighter2Lighter font weight.
bolder3Bolder font weight.
504
1005
2006
3007
4008
5009
55010
60011
70012
80013
85014
90015
95016
100017

css.justify-content

Kind: static enum of css
Properties

NameDefaultDescription
"flex-start"0Justify content to the end
"flex-end"1Align content to the end
center2Align content to the center
"space-between"3Add space between elements
"space-around"4Add space around elements

css.position

Kind: static enum of css
Properties

NameDefaultDescription
static0Positioned using normal layout rules; default.
absolute1Element is positioned absolutely, relative to its nearest positioned ancestor. Does not affect layout.
relative2Element is positioned relative to where it would have been positioned when using static.

css.text-align

Kind: static enum of css
Properties

NameDefaultDescription
left0Left align
center1Center
right2Right align
justify3Justify; UNSUPPORTED

css.text-overflow

Kind: static enum of css
Properties

NameDefaultDescription
clip0Clip text content; default.
ellipsis1Show an ellipsis.

css.visibility

Kind: static enum of css
Properties

NameDefaultDescription
visible0Show the element; default.
hidden1Hide the element. Layout is unaffected, so space is reserved for the element.

css.white-space

Kind: static enum of css
Properties

NameDefaultDescription
normal0Allow wrapping. Default.
nowrap1Prevent breaking on white space.