Belajar Css 3 Cheatsheet
Belajar Css 3 Cheatsheet
com
BACKGROUND 1 PSUEDO-CLASS 9
BORDER 1 PSUEDO-ELEMENTS 9
TABLE 1 UI 9
BOX MODEL 2
TRANSITIONS 2 UNITS 10
COLOR 3 ANGELS 10
ANIMATIONS 4 COLORS 10
COLUMN 4 FREQUENCY 10
SPEECH 5 TIME 10
TEMPLATE LAYOUT 5
GRID POSITIONING 6
HYPERLINK 6
OUTLINE 6
GENERATED CONTENT 7
POSITIONING 7
RUBY 7
LINE BOX 8
PAGED MEDIA 8
www.hostinger.com
background background-image border border-width
background-position border-style
background-size border-color
background-repeat
background-attachment border-break border-width
background-origin border-style
background-clip color
background-color close
border-right-style border-style
www.hostinger.com
border-top border-top-width clear left | right | both | none
border-style
border-color display none | inline | block | inlineblock
| list-item | run-in |
border-top-color border-color compact | table | inlinetable
| table-row-group |
border-top-style border-style table-header-group | tablefooter-
group | table-row |
border-top-width thin | medium | thick table-column-group | tablecolumn
length | table-cell | tablecaption
| ruby | ruby-base |
border-width thin | medium | thick ruby-text | ruby-base-group
length | ruby-text-group
auto
%
margin length
transition transition-property
transition-duration margin margin-top
transition-timing-function margin-right
transition-delay margin-bottom
margin-bottom margin-left
transition-delay time
auto
transition-duration time length
margin-left %
transition-property none | all
auto
transition-timing-function length
ease | linear | ease-in |
margin-right %
ease-out | ease-in-out |
cubic-Bezier (number,
number, number, number) auto
length
%
www.hostinger.com
margin-top auto font font-style
length font-variant
% font-weight
font-size/line-height
padding padding padding-top font-family
padding-right caption | icon | menu |
padding-bottom message-box | smallcaption
padding-left | status-bar
marquee-loop
reverse infinite font-stretch normal | wider | narrower |
number ultra-condensed | extracondensed
| condensed | semi-condensed
marquee-play-count
infinite | semiexpanded | expanded |
integer extra-expanded | ultraexpanded
| inherit
marquee-speed
slow | normal | fast
font-style normal | italic | oblique |
marquee-style
scroll | slide | alternate inherit
rotation-point inherit
angle
opacity color
visibility
position (paired value o ff set)
inherit
number
visibility visible | hidden |
collapse
www.hostinger.com
direction ltr | rtl | | column-count
inherit pre
-
hanging-punctuation
lin
none | [ start | end | e column-fill
letter-spacing endedge ]
preserve | collapse | column-gap
normal preserve- breaks |
length discard
punctuation-trim %
column-rule
normal | keep-all |
text-align none | [start | end | loose |
adjacent] break-strict |
break-all
start | end | left | right column-rule-color
text-align-last
| n
center | o column-rule-style
justify r
text-decoration m column-rule-width
a
start | end | left | right
l
|
text-emphasis l
center | columns
e
justify
n
g
text-indent none | underline | overline t
| h column-span
line-through | %
blink column-width
text-justify
normal |
none | [ [ accent | dot | break-word
circle
| disc] [ before | after ]?
text-outline ]
length
%
text-shadow animation
auto | inter-word |
interideograph
| inter-cluster | distribute
|
text-transform
kashida |
tibetan
normal | unrestricted |
timing-function
none
word-spacing
|
suppress
prewrap
auto normal |
number color
alternate time
auto | border-style
inherit
balance thin | medium | thick number
length animation-name
normal animation-duration none | IDENT
length column-width animation-timing-
column-count function animation-delay running | paused
column- animation-iteration-
rule-width 1 | all count animation-
ease | linear | ease-in |
column- direction
ease-out | ease-in-out |
rule-style auto cubic-Bezier (number,
column- length time number, number, number)
rule-color
www.hostinger.com
cue cue-before punctuation | voice-family voice-rate
cue-after inherit
mark-before string
mark-after string
pause pause-before
pause-after
box-align
pause-before none | x-weak | weak
|
box-direction
medium | strong | x-
strong
| box-flex
inherit
pause-after
time box-flex-group
rest-before string
rest-before
rest-after
right
www.hostinger.com
list-style list-style-type backface-visibility visible | hidden
list-style-position
list-style-image perspective none
number
list-style-image none
url perspective-origin [ [ [ percentage> | <length> |
left | center | right ] [
list-style-position
Inside | outside <percentage> | <length> | top
| center | bottom ]? ] <length> ]
list-style-type
none | asterisks | box | | [ [ [ left | center | right ] ||
check | circle | diamond [ top | center | bottom ] ]
| disc | hyphen | <length> ]
square |
decimal | decimal-leadingzero transform none | matrix | matrix3d |
| lower-roman | upperroman translate3d | translateX |
| lower-alpha | upper- translateY | translateZ |
alpha | lower-greek | scale | scale3d | scaleX |
lower-latin | upper-latin scaleY | scaleZ | rotate |
| rotate3d | rotateX |
hebrew | armenian | georgian rotateY
| cjk-ideographic | | rotateZ | skewX | skewY |
hiragana | katakana | skew | perspective
hiragana- iroha | katakana- transform-origin
marker-o ff set iroha [ [ [ <percentage> |
| footnotes <length> | left | center |
right ] [ <percentage> |
auto <length> | top | center |
length bottom ]? ] <length> ] |
[ [ [ left | center | right ]
|| [ top | center |
bottom ] ]
grid-columns transform-style <length> ]
flat | preserve-3d
none | inherit
grid-rows [ length percentage relative
length ]
none | inherit
[ length percentage relative
length ]
target target-name
target-new
target-position
color
outline out
outline-width invert
lin
e-
inherit
col
length
outline-color or
out
None | dotted | dashed | solid |
lin
double | groove | ridge | inset |
outline- e-
outset
styl
e
thin | medium | thick
o ff set out
length
lin
e-
outline-style wi
dth
target-name current | root | parent
| new windo none above | behind |
| modal
string w| front |
target-new back
tab |
target-position
www.hostinger.com
bookmark-label content string-set identifier
attr content-list
string
text-replace none
bookmark-level none [<string> <string>]+
integer
bookmark-target self
uri
attr
border-length auto
length bottom auto
%
content normal | none | inhibit length
uri
clip shape
counter-increment none auto
identifier number
left auto
counter-reset none %
identifier number length
o ff set
length length top auto
%
hyphenate-after
auto length
integer
z-index auto
hyphenate-before
auto number
integer
hyphenate-character
auto
integer
hyphenate-lines
no-limit
integer
baseline | sub |
super
length
drop-initial-after-align fit
%
drop-initial-after-adjust fit-position
auto | use-script | fill | hidden | meet | slice
nochange
| reset-size |
alphabetic [top | center | bottom]
| hanging | || [left | center | right]
ideographic image-orientation length
| mathematical %
|
drop-initial-before-align
central | middle | text- orphans auto
after- edge | text-before- angle
edge
integer
alignment-baseline
caps-height
alignment-baseline
page auto
drop-initial-before-adjust before-edge | text-beforeedge
identifier
| central | middle |
hanging |
mathematical length page-break-after auto | always | avoid | left |
% right
drop-initial-value drop-initial-size
page-break-before auto | always | avoid | left |
initial
integer right
inline-box-align
normal
number
length
%
www.hostinger.com
appearance normal | inherit | [icon | :active an activated element
window | desktop | workspace
| document | tooltip | dialog | :focus an element while the element
button | pushbutton | hyperlink has focus
| radiobutton | checkbox |
:visited a visited link
menuitem | tab | menu |
menubar
:hover an element when you mouse over it
| pull-down-menu | pop-up-
menu
:link an unvisited link
| list-menu | radio-group |
checkboxgroup | outline-tree
:disabled an element while the element
| range | field | combo-box is disabled
cursor | signature | password]
:enabled an element while the element
auto | crosshair | default | is enabled
pointer
| move | e-resize | ne-resize :checked an element (form element control)
| nw-resize | nresize | se- that is checked
resize | sw-resize | s-resize |
w-resize | text | wait | help :selection an element that is currently
icon selected of highlighted by
url
the user
Adds special style to the first root element within the document
::first-line :root
letter of a text
:not(x) an element not represented
Adds special style to the first by the argument ‘x’
::before
line of a text
:target a target element as specified
by a target in a URI
Inserts some content before
::after
an element
% percentage Hz hertz
in inch
mm millimeter
s seconds
deg degrees
grad grads
rad radians
turn turns
www.hostinger.com
SELECTOR TYPES
Adjacent All elements that share the same parent h1 + p { font-style: italic; }
Sibling and elements are in the same immediate
sequence
General All elements that share the same parent h1 ~ p { font-style: italic; }
Sibling and elements are in the same sequence
(not necessarily immediate)
Attribute An element with that matches E[selected] - att whatever the value
the attribute listed E[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 value that end
with the suffix "val"
E[att*="val"] - att value
contains at least one instance
of the substring "val"
www.hostinger.com