CSS Properties Flashcards
What is align-content?
It aligns a flex container’s lines within the flex container when there is extra space on the cross-axis. This property has no effect on single line flexible boxes.
What is align-content?
It aligns flex items of the current flex line the same way as justify-content but in the perpendicular direction.
What is align-self?
It aligns flex items of the current flex line overriding the align-items value. If any of the flex item’s cross-axis margin is set to auto, then align-self is ignored.
What is background?
Shorthand for setting the individual background values in a single place in the style sheet. background can be used to set the values for one or more of: background-clip, background-color, background-image, background-origin, background-position, background-repeat, background-size, and background-attachment.
The background CSS shorthand property assigns explicit given values and sets missing properties to their initial values.
What is background-attachment?
If a background-image is specified, the background-attachment CSS property determines whether that image’s position is fixed within the viewport, or scrolls along with its containing block.
What is background-clip?
The background-clip CSS property specifies whether an element’s background, either the color or image, extends underneath its border.
If there is no background image, this property has only visual effect when the border has transparent regions (because of border-style) or partially opaque regions; otherwise the border covers up the difference.
What is background-color?
The background-color CSS property sets the background color of an element, either through a color value or the keyword transparent.
What is background-image?
The CSS background-image property sets one or several background images for an element. The images are drawn on successive stacking context layers, with the first specified being drawn as if it is the closest to the user. The borders of the element are then drawn on top of them, and the background-color is drawn beneath them.
How the images are drawn relative to the box and its borders is defined by the background-clip and background-origin CSS properties.
What is background-origin?
The background-origin CSS property determines the background positioning area, that is the position of the origin of an image specified using the background-image CSS property.
Note that background-origin is ignored when background-attachment is fixed.
What is background-position?
The background-position CSS property sets the initial position, relative to the background position layer defined by background-origin for each defined background image.
What is background-repeat?
The background-repeat CSS property defines how background images are repeated. A background image can be repeated along the horizontal axis, the vertical axis, both, or not repeated at all. When the repetition of the image tiles doesn’t let them exactly cover the background, the way adjustments are done can be controlled by the author: by default, the last image is clipped, but the different tiles can instead be re-sized, or space can be inserted between the tiles.
What is background-size?
The background-size CSS property specifies the size of the background images. The size of the image can be fully constrained or only partially in order to preserve its intrinsic ratio.
What is bleed?
This property specifies the extent of the page bleed area outside the page box. This property only has effect if crop marks are enabled.
What is border?
The border CSS property is a shorthand property for setting the individual border property values in a single place in the style sheet. border can be used to set the values for one or more of: border-width, border-style, border-color.
Like all shorthand properties, a missing value for one of the longhand properties is set to the corresponding initial value. Also note that border-image, though not settable using this shorthand, is reset to its initial value, that is, none. This allows to use border to reset any border settings set earlier in the cascade. As the W3C intends to preserve this property in future level of the spec, it is recommended to use this method to reset border settings.
What is border-bottom?
The border-bottom CSS property is a shorthand that sets the values of border-bottom-color, border-bottom-style, and border-bottom-width. These properties describe the bottom border of elements.