








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
CHEAT SHEET. BACKGROUNDS ... x-% y-% x-pos y-pos. CSS3 is the latest evolution of the Cascading Style Sheets ... ease-in-out | cubic-Bezier (number,.
Typology: Lecture notes
1 / 14
This page cannot be seen from the preview
Don't miss anything!









background-image background-position background-size background-repeat background-attachment background-origin background-clip background-color
scroll | fixed
bounding-box | each-box | continuous
length % border-box | padding-box | content-box | no-clip
repeat | repeat-x | repeat-y | no-repeat
color transparent
color transparent
url none
length % auto | cover | contain
border-box | padding-box | content-box
top left | top center | top right | center left | center center | center right | bottom left | bottom center | bottom right x-% y-% x-pos y-pos
border-width border-style border-color
border-bottom-width border-style border-color
border-left-width border-style border-color
border-right-width border-style border-color
border-style
border-width border-style color close
border-color
border-color
thin | medium | thick length
border-style
border-top-width border-style border-color
inset || [ length, length, length, length ||
border-style
border-color
border-style
none | hidden | dotted | dashed | solid | double | groove | ridge | inset | outset
border-color
thin | medium | thick | length
thin | medium | thick | length
thin | medium | thick | length
color transparent
collapse | separate
color
length
length
length
image [ number / % border-width stretch | repeat | round ] none
border-radius border-top-right-radius border-bottom-right-radius border-bottom-left-radius border-top-left-radius
font-style font-variant font-weight font-size/line-height font-family
normal | bold | bolder | lighter |100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit
xx-small | x-small | small | medium |large | x-large | xx-large | smaller | larger | inherit length %
normal | wider | narrower |ultra-condensed | extra-condensed | condensed | semi-condensed | semi-expanded | ultra-expanded |inherit
normal | italic | oblique | inherit
none | inherit number
ltr | rtl | inherit
length %
normal | unresrricted | none |suppress
normal length %
auto | inter-word | inter-ideograph |inter-cluster | distribute | kashida | tibetan
none | [ [ accent | dot | circle | disc | [ before | after ]?]
none | [ start | end | adjacent ]
start | end | left | right | center | justify
start | end | left | right | center | justify
none color length
none | capitalize | uppercase |lowercase
none | underline | overline |line-thorugh | blink
none | [ start | end | end-edge ]
normal length %
none color length
normal | embed | bidi-override
normal | pre | nowrap | pre-wrap | pre-line
normal | keep-all | loose | break-strict |break-all
normal length %
perserve | collapse | pre-serve-breaks |discard
inherit color
inherit number
collapse | separate
top | bottom | left | right
length length
show | hide
auto | fixed
start | end | center | base
normal | reverse
normal
start | end | center | justify
content-box | padding-box |border-box | margin-box
top | bottom | left | right
integer
single | multiple
horizontal | verticle | inline-axis | block-axis
auto number
normal length
auto | balance
1 | all
auto length
column-width column-count
column-rule-width column-rule-style column-rule-color
border-style
thin | medium | thick length
none | inherit [ length percentage relative length ]
none | inherit [ length percentage relative length ]
cue-before cue-after
mark-before mark-after
string
string
url [ silent | x-soft | soft | medium | loud |x-loud | none | inherit ] number %
top | bottom | left | right
rest-before rest-after
none | x-weak | weak | medium | strong | x-strong | inherit time
none | x-weak | weak | medium | strong | x-strong | inherit time
none | normal | spell-out | digits | literal-punctuation | no-punctuation |inherit-number
pause-before pause-after
string
time
inherit | [ <specific-voice, age, generic-voice,number> ]
x-slow | slow | medium | fast | x-fast | inherit %
x-low | low | medium | high | x-high | inherit number %
x-low | low | medium | high | x-high | inherit number
strong | moderate | none | reduced | inherit
silent | x-soft | soft | medium | loud | x-loud |inherit number %
none | x-weak | weak | medium | strong | x-strong | inherit time
url [ silent | x-soft | soft | medium | loud | x-loud | none | inherit ] number %
list-style-type list-style-position list-style-image
none | asterisks | box | check | circle |diamond | disc | hyphen | square | decimal | decimal-leading-zero |lower-roman | upper-roman | lower-alpha | upper-alpha |lower-greek | lower-latin | upper-latin | hebrew | armenian | georgian | cjk-ideographic | hiragana | katakana |hiragana-iroha | katakana-iroha | footnotes
none url
auto length
animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction
ease | linear | ease-in | ease-out |ease-in-out | cubic-Bezier (number, number, number, number)
normal | alternate
running | paused
inherit number
time
time
none | IDENT
transitions-property transitions-duration transitions-timing-function transitions-delay
ease | linear | ease-in | ease-out |ease-in-out | cubic-Bezier ( number, number, number, number)
time
time
none | all
PSEUDO-CLASS
:active an activated element :focus an element while the element has focus :visited a visited link :hover an element when you mouse over it :link an unvisited link :disabled an element while the element is disabled :enabled an element while the element is enabled :checked an element (form element control) that is checked :selection an element that is currently selected of highlightedby the user
:lang allows the author to specify a language to use in aspecified element
:nth-child(n) an element that is the n-th sibling :nth-last child(n) an element that is the n-th sibling countingfrom the last sibling
:first-child an element that is the first sibling :last-child an element that is the last sibling :only-child an element that is the only child :nth-of-type(n) an element that is the n-th sibling of its type :nth-last-of-type(n) an element that is the n-th sibling of its typecounting from the last sibling
:last-of-type an element that is the last sibling of its type :first-of-type an element that is the first sibling of its type :only-of-type an element that is the only of its type :empty an element that has no children :root root element within the document :not(x) an element not represented by the argument 'x' :target a target element as specified by a target in a URI
PSEUDO-ELEMENT
::first-letter Adds special style to the first letter of a text ::first-line Adds special style to the first line of a text ::before Inserts some content before an element ::after Inserts some content after an element
ABSOLUTE MEASUREMENT
% percentage cm centimeter in inch mm millimeter pc pica (1p = 12 points) pt point (1pt = 1/72 inch)
RELATIVE MEASUREMENT ch width of the "0" glyph found in the font for the fontsize used to render em 1em = current font size of current element ex x-height of the element's font gd the grid defined by 'layout-grid' px pixel of the viewing device rem the font size of the root element vh the viewport's height vw the viewport's width vm viewport's height or width, whichever is smaller ofthe two
ANGLES deg degrees grad grads rad radians turn turns
TIME ms milli-seconds s seconds
FREQUENCY Hz hertz kHz kilo-hertz
COLORS color name red, blue, green, dark green rgb(x,y,z) red = rgb(255,0,0) rgb(x%,y%,z%) red = rgb(100%,0,0) rgba(x,y,z,alpha) red = rgba(255,0,0) #rrggbb red = #ff0000 (or shorthand = #f00)hsl(hue, saturation, lightness) red=hsl (0, 100%, 50%) flavor An accent color (typically chosen by theuser) to customize the user interface of the user agent itself. currentColor computed value of the 'currentColor'keyword is the computed value of the 'color' property
Universal Type Grouping Class Id Descendant
Child Adjacent Sibling General Sibling
Attribute
Any element Any element of that type Multiple elements of different types Multiple elements of different types when youdon't want to affect all instances of that type A single element type when you don't want to affect all instances of that type An element that is below (in the documenttree) another element - no matter how many levels below An element that is directly below (in the document tree) another element All elements that share the same parent andelements are in the same immediate sequence All elements that share the same parent andelements are in the same sequence (not necessarily immediate) An element with that matches the attributelisted
#title > p { font-weight: bold; } h1 + p { font-style: italic; } h1 ~ p { font-style: italic; }
E[selected] - att whatever the valueE[att="val"] - att with a specific value E[rel~="next"] - att with a value is a whitespace separated list[lang|="en"] - att value either being exactly "val" or beginning with "val" immediately followed by "-" E[att^="val"] - att value that begins with the prefix "val"E[att$="val"] - att vale that begins with the suffix "val" E[att="val"] - att value contains at least one instance of thesubstring "val"
LINE BOX
auto | baseline | before-edge |text-before-edge | middle | central | after-edge | text-after-edge |ideographic | alphabetic | hanging | mathematical length %
alignment-baseline
auto integer % line
initial | last integer
normal number length %
line-stacking-strategy line-stacking-ruby line-stacking-shift
inline-line-height |block-line-height | max-height | grid-height
exclude-ruby | include-ruby
consider-shifts |disregard-shifts
line-stacking-strategy line-stacking-ruby line-stacking-shift
Baseline | sub | super | top |text-top | middle | bottom | text-bottom length %
auto | font-size | text-size |max-size
central | middle | after-edge |text-after-edge | ideographic | alphabetic | mathematical %
caps-height alignment-baseline
initial integer
before-edge | text-before-edge | central | middle | hanging |mathematical length %
baseline | ise-script | before-edge |text-before-edge | after-edge | text-after-edge | central | middle |ideographic | alphabetic | hanging | mathematical
baseline | sub | super length %
auto | use-script | no-change |reset-size | alphabetic | hanging | ideographic | mathematical |central | middle | text-after-edge | text-before-edge
HYPERLINK
target-name target-new target-position
current | root | parent | new |modal string
window | tab | none
above | behind | front | back
auto | start | left | center |end | right | distribute-letter | distribute-space | line-edge
auto | start | end | none
before | after | right | inline
attr(x) | none
fill | hidden | meet | slice
[top | center | bottom] || [left | center | right] length %
auto angle
auto % length
auto % length
auto % length
shape auto
auto % length
auto number
static | relative | absolute | fixed
auto identifier
auto | always | avoid | left | right
auto | always | avoid | left | right
auto | avoid
integer
auto | landscape | portrait length
integer