3) Acale: Soase 2) Rolalt
3) Acale: Soase 2) Rolalt
Aanstorm to
tRanslale
Retali
Scate
to x22
D thans lale - hoves an eleuet Om Curenl posí hen
LAansatë ( 5o,'a
anjlali
TAanshorm ( 50Px, 1Oopx)
-ms IE
-Weit Soase
Ralati (20deg)
2) Rolalt ()
+ve Oleqrce -
LEck Wue
degrce: - antidecisise
-ve
he S2C
3) hthwu enias
Undeaoes
SCale )'- Or Oedaoe
he Sizc Acale (?1 3)
(doull the
Oidll ACat S, ) -haly
1he
1he
eleneF aldng
4) JKeux) the
b gue
an angle
an
ALeusS
3 Transtorm
katalix
1 otalix hansomM? 50 dog hotaliy C)
Polali 2)
speity two therg1
TAantidns - Mual
CSS popeity On
) ch eHea ha
to be addid
2) Dasalon elfe
laninon, wide, 2s
xpl
the
dpeutied
wiu Jla unen the 4peutied
Taniton heet auee
valuee
CSs poperty Chaplo
dw idu 1o0,
hehi 0
bacug ound: Fad;
esKet-tangiten widl
Aansiton idh 2
LwhOv
idu: 300px
<stle bo
bo Nultiple propaiey
eaae -A -
-0u- SkaA
ease - Slo Lnd
CKannyle
Id l00 hu phu: 1o0 6acllqYOuad
-webkt -aansran Wic 2S
Tansition widis 2
duv: hove
widuA: 300pk
anshoiM 21;
olw hovu J Wi d:300px heiphs 300p
3 2
sanyomN: &otale ( 190 dag)
Animaluon
Changu One SHle to aneh
Sradually hOM +to
Koyhranes
keytan ex f
Yêm 6aciugreund -9or hed
-Color:
to bacug rourol elas
cw
ei too
anLalon -kans ek
aninalai dualei s
Qninatton- Utah on-Couat 3;
iNaio i - dileehoi : avese
(a-wesit-tlanes ek
heu acttqy0 ud -Cola: dad;
ro
Lo baug ud -(eloc yellou3
altea
nLatuon- dilection; -twrie
Kayhane
top: oJ
0Y% bauground-cele: Aud; Ht: 0
top: roJ
yOS Lft :200
let:200 20/%
green fop; loo? 5D7
TS7
(
matoj- narl
emahon- uhanonM
anNaion- iterahon- COu wers e/ alternala
annahon dLLLh on eaae lucar
a Matin tiLtng-4AcHen eas e-u/eaal-OCH |
borde-Aadius - d px
Thumbaal imape)
brdes; Ipx Soud #ddd
bordes- hadius: uPx
Paddcg5Px
Wid 1s0 Px
mg koUL 0o
box-hadous 2Px IP
hgba ( 190, 146,
O.S)3
Masain auo
n Aeighs; Qub (opOns?ve)
display blocu Canter
widn
She fch
WU 30 She fth
aG e "Lafe)
borde- Lanape bofd- Iuagt Widh -S Gue
bordn-ase-gepeat Ypeat|
boK -Skadow AON
vShadouw bl Spread ole
h-Shadoco
gAadoe)
unsel
(hanpes the
Shadow {vonu an
0net Oul to
lanl Aadous
an
filta
lteL rayocale(100,
5t Px) Oafault 0
Di ghtna %) blacK 1oo7%,
Ongua
Couass 7) 0-blade do-Onra
t00 6es Couuas
&olale hue-Aolale
he- (das ) (r4r
nwu ( 10 nuul ( %) 07)
<syle 7
widen : 1o0 PX :
&div heghs: 100 PA;
backqyo ud : ud
lanaHon uwidi 2s,
6ackgsOund-colo
53
wiA,
ttdiwi dlanahan--Hu-tanelipn; ludar hovu
<bu7
sISyu
<Bod
d="diw"7 ULansito,
Co lut <[duw7
Style Sheet
Backgrournd Properties
Property
Description
background
Sets all the background properties in one declaration background-atachment Sets whether a
background image is fixed or scrolls with the rest of the page background-color Sets the background color of an element
backqround-image Sets the background image for an element
background-position Sets the starting position of a background image
top left top bottom left
center bottom center
top right center bottom right
left If you only specify one keyword, the second value will be "center"
center center Default value is: 0% 0%
center right
x% y% The first value is the horizontal position and the second value is the vertical. The top
left corner is 0% 0%. The right bottom corner is 100% 100%. If you only specify
one value, the other value will be 50%.
xpos Ypos left corner is 0 0. Units can be any
The
top pixels (Opx Opx) or other CSS units. If
The first value is the horizontal position and the second value is the vertical. you only specify one value, the other value will be 50%. You can mix %
and positions
Property Description
border Sets all the border properties in one declaration
border
the width of the border. See for
width Specifies border-width possible values
the border. See for
border-style Specifies the style of border-style possible values
border-color color of the border. See for
Specifies the border-color possible values
border-bottom Sets all the bottom border properties in one declaration border-bottom-color
Sets the color of the bottom border
1
bottom
border-bottom-width Sets the width of the border border-color Sets the color
of the four in one
borders border-left Sets all the left border properties declaration border-
Sets the color of the left border Sets the style of the left border
left-color border-left-style
Sets the width of the left border
border-left-width
border-right the border properties in one
Sets all right declaration Sets the color of the
border-right-color right border
ridge
inset value
Specifies a 3D inset border. The effect depends on the border-color
outset Specifies a 3D outset border. The effect depends on the border-color
value
Sets all the top border properties in one declaration
border-topp border-top width Specifies the width of the top border. See
border-top-width for
possible values
border-top style
border-top color
Specifies the style of the top border. See border-top-style for possible
values
Specifies the color of the top border. See border-top-color for possible
values
border-top-color Sets the color of the top border border-top-style Sets
the style of the top border border-top-width Sets the width of the top border
border-width Sets the width of the four borders
Sets all the outline properties in one declaration
Outline outline-color Sets the color of an
outline outine-style Sets the style of an outine outline-width Sets the width of an outline
Dimension Properties
Property
Description
height Sets the height of an element
max-height Sets the maximum height of an element
max-width Sets the maximum width of an element
Property
Description
Sets all the font properties in one declaration the font for
font font-family Specifies family
text
Margin Properties
Description
Property marqin Sets all the margin properties in one declaration
margin-bottom Sets the bottom margin of an element
margin-left Sets the left margin of an element
marqin-right Sets the right margin of an element
margin-toop Sets the top margin of an element
Padding Properties
the in one
Property Description padding Sets all paddinig properties declaration
the in is
length Specifies padding px, pt, cm, etc. Default value Opx
% the in of the width of the
Specifies padding percent containing element
Property Description
bottom for a box
bottom Sets the margin edge positioned
clear Specifies which sides of an element where other floating elements are not allowed clip Clips an absolutely
positioned element
Cursor
Specifies the type of cursor to be displayed
URL the URL-defined
custom cursors. Note: a generic cursor at the end of the list, in case none of
A
comma
separated of URLs to Always specify cursors can be used
auto
Default. The browser sets a cursor
cursor
crosshair The render as a crosshair
default The default cursor
cursor an of a box is to be moved
e-resize The indicates that edge right
(east)
cursor that is available cursor
help The indicates help move The
indicates that should be moved
something
of a bOx is to be moved
resize The cursor indicates that an edge up (north)
ne boOx moved
resize Ihe cursor indicates that an edge of a is to be up and right
nw (north/east)
of a moved
resize The cursor indicates that an edge box is to be up and left (north/west)
The cursor render as a pointer
pointer
The cursor indicates that the program is progress)
progress busy (in S-resize The
of a box is be moved
cursor indicates that an edge to down (south)
The indicates that an edge of a box is to be moved
se-resize cursor down and right
(south/east)
SW an of a box is to be moved
The cursor indicates that edge down and left
resize
(south/west)
Property
Description
the a break occurs inside an
orphans Sets the minimum number of lines that must be left at bottom of a page when page element
the behavior after an
page-break-after Sets page-breaking element
auto
break element
Default. Insert a page after the if necessary
an
Sets the page-breaking behavior before element
behavior
Sets the page-breaking inside an page-break-before element
page-break-inside Table Properties
widows Sets minimum be left at the top of a page
the number of lines that must
Description
Property
border-collapse (border spacing and empty-cells properties will be ignored)
separate
Specifies whether or not table borders should be collapsed
Borders are detached (border-spacing and empty-cells properties will
Borders are into a border when
collapse collapsed single possible not be ignored). This is default
border-spacing Speciies the distance between the borders of adjacent cells caption-sidee Specifies the
placement of a table caption
top Puts the caption above the table. This is default
the befow
bottom Puts captión the table
empty-cells
Specifies whether or not to display borders and background on empty cells ina table
No borders are shown on cells
hide background or empty
show is default the
Background and borders are shown on empty cells. This table-lavout Sets layout algorithm to
auto table is
be used for a table Automatic layout algorithm (this default):
is the widest
The column width set by cells unbreakable content in the
be it to read the the final
Can slow, since needs table, before through all content in determining the layout
fixed Fixed table layout
algorithm
The
horizontal
Transforms all
lowercase characters to lowercase
Description
Property
Adds a to an element that is activated
active style
after Adds content after an element
content before an element
before Adds
the first
first-child Adds a style to an element that is the first child of another element first-letter Adds a style to
character of a text
Adds a to the first line of a text
first-line style
element that has keyboard input focus
focus Adds a style to an 7
hover Adds a style to an element when you mouse over it lang Adds a style to an element with a specific
lang attribute link Adds a style to an unvisited link
Visited Adds a style to a visited link
Example: nth-eAild
Unvalid h-last -Chilad {
h1:after
Ualud
content:url(beep.wav);
hial--type nth-otype a:link
o
all
four
paddings are 10px Uolins "A".
AE
ay E eleuiat hat
A el s(e CAld or
Cita Cld)
AzE Any 6êlenent hat à a CAsld /dutel destendat)
f CAld
A4E
.
Chld an or
py
nCh - +5) an +- (Sbling4) in+0 n
maltn
n matn elenut
2n+O 2041 2n
2, 4, 6, . matA
P
display: NOne
auqoud- colo Jelow
Oddens 20 px
dv: hovu P
aisplay bioce,
HOUn 0n
<P7 Heno || |P7
<diu7
cu7
<i One : brstchild i7 too
ul7 laar- CAild
div:
<iy > Qhc <[dU7 liy firt-o t9Pe
<P> POL <[P7
div: pe PQLa
7
cOi d <|div 7 div laol-e P7
<lPz P;nth-
e4-ype( <div7
fAt Pala
P7 P <[P
<P7 deond P7
CP7 thitd P7
Second
thid
Pi:6al -Cild
1 <iz elnt i au <P
P hiat-CaId
all cez eloent P7
e leauat
1F CAilcl 01 anohe
waluo
Sle7
50rclu 2Pr god
npul wau d
<Eyle 7
beyore uouli-
nLeus Coanli
P: uy-
uonliz.
P::behore "Table 'puali ly- Coul)
T
-unlen: befault an alint e lOniew displa
block as a bloc luki <P>
le asle - Coluunun- 9 0y)
d
nli bloc layle- hoadll q Opa Cle-5lex -
a:active
:active Selects the active link
<input> element
empty p:empty Selects every <p> element that has no children enabled input:enabled Selects every
first-child p:first-child first-of-type p:first-of-type Seiects every <p> elements that is the first chiid of its parent
Selects every <p> eiement that is the first <p> element of its parent
Se ects the <input> eiement that has focus a:hover Selects links on mcuse over
:TOCus input:focus hover
in-range input:in-range Seiects <input> elenients with a value within a specified range
Selects ail <input> elements with an invalid
inalid input:invalid vaiue
ngilanguage) p:lang(it) Selects every <p> element with a lang atribute value starting with "it"
lastchild p:last-child Selects every <p> elements that is the last chilc of irs parent
:last-of-type p:last-of-type Selcts every <p> element that is the last <n> iement of its parent
a:visited
VIsited Selects all visited links
CSS Pseudo
All Elements
Selector Example
omple description
after P::after Insert content after every <p> element before p::before Insert content before every <p>
element first-letter p::first-letter Selects the first letter of every <p> element first-linee
the of an
selection p::selection Selects portion element that is selected by a user
p::afterí
Remember
content: " -
this";
background-color: yellow;
color: red;
font-weight: bold;
innput:required {
background-color: yellow;
not(selector) element
element second
Selects every <p> that is the
from last child p:nth-last-child(2)
child of its parent, counting the nth-last-child(n)
element second
Selects every <p> that is the
element of its
parent, from the p:nth-last-of-type(2)
p> counting nth-last-of-typeln) iast child
Selects second
every <p> element that is the
p:nth-of-type(2)
<p> element of its parent nth-of-typeln)
Selects
every <p> element that is the only <p>
p:only-of-type
element of its parent only-of-type
URL anchor
1arget #news:target Selects the current active #news eleent clicked on a containing that
nare