CSS Flashcards
box-shadow
The box-shadow controls the shadow effect surrounding the box of the HTML element.
text-shadow
The text-shadow property controls the shadow of text.
clip property
allows you to specify what portion of an element is visible. The clip property takes only one parameter, the shape to clip to. Currently, the only shape supported is a rectangle, so the only parameter value that will yield any results is the rect()
position absolute
The element is positioned relative to its first positioned (not static) ancestor element
position static
Default value. Elements render in order, as they appear in the document flow
position relative
The element is positioned relative to its normal position, so “left:20px” adds 20 pixels to the element’s LEFT position
sticky
The element is positioned based on the user’s scroll position
word-wrap: normal
Break words only at allowed break points
word-wrap: break-word
Allows unbreakable words to be broken
word-wrap: break-all
To prevent overflow, word may be broken at any character
word-wrap: keep-all
Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as value “normal”
gt(3)
selects every element after the fourth one
eq(4)
selects the fifth element in a hierarchy
visibility hidden
does not show but it allocates space for the element
display none:
does not show and it does not allocate space
@supports (display: grid)
The @supports CSS at-rule lets you specify declarations that depend on a browser’s support for one or more specific CSS features.
[attr]
This selector will select all elements with the attribute attr, whatever its value.
[attr=val]
[attr=val] : This selector will select all elements with the attribute attr, but only if its value is val.
[attr~=val]:
[attr^=val]
[attr^=val] : This selector will select all elements with the attribute attr for which the value starts with val.
[attr$=val]
[attr$=val] : This selector will select all elements with the attribute attr for which the value ends with val.