0% found this document useful (0 votes)
4 views

3) Acale: Soase 2) Rolalt

Uploaded by

savixo2871
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

3) Acale: Soase 2) Rolalt

Uploaded by

savixo2871
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 24

Auo LA

Aanstorm to
tRanslale
Retali
Scate

to x22
D thans lale - hoves an eleuet Om Curenl posí hen

div ms-than{orm: aus ak ( SO, 10o) ebKir-tkanstorm

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

uBansfornm; AleX [2odeg)


Along aKu
ALed( cleg7) -
aK

SkewX angle, Hngle)


+RarslatoX ),
CaleX , Sucy) SKwOK, taAsaOX CI,
mauux SCali, ars aliy))
tiansorm mällis( ,03, 0,',0)
huilhodo
Cnbies 2.D Kandtorm ato

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

us tRansiton wid4 2s heit 4s


peeA usve
tRaniton-timng- unchon
da.) S(o Sf@, FhaA
bLat, end
ease
Linear San Specd
Caae O
Slow Satl

eaae -A -
-0u- SkaA
ease - Slo Lnd

CKannyle
Id l00 hu phu: 1o0 6acllqYOuad
-webkt -aansran Wic 2S
Tansition widis 2

dw- wK-tlansitonfi uaaS

duv: hove
widuA: 300pk

dulay dulay c deeore iantit1on


Mansthon t anstomy
Mansithon widCh 25, Aaiplt 2s ,
hanstosm 2

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)

0% tapaöpaci ?) opauiy 3o7)


1D D%
Odiad
Sepea z) sepa(tosy)
9aluuali <7) + Aalurai(,
olwop-Skados(Px, px,0PR ud
h-shadod yyhade
flipH
0phona
Hipv blethee
O4 da

text- (hadow: 2px 2 Px kud


et bex-Chadou 2 Px 2Px 4Px blacu P* SP

<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

300px; Colo: 9reen


backq ond

<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

background-repeat Sets how a background image will be repeated


Border and Outline Properties

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

border-bottom-style Sets the style 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

border-right-style Sets the style of the right border


border-right-width Sets the width of the right border
Sets the style of the four borders
border-style
Specifies no border
none
in border conflict resolution for table
hidden The same as "none", except
elements
dotted Specifies a dotted border
dashed Specifies a dashed border
solid
Specifies a solid border
double Specifies a double border
groove Specifies a 3D grooved border. The effect depends qn the border-color value

Specifies a 3D ridged border. The effect depends on the border-color value

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

min-height Sets the minimum height of an element


min-width Sets the minimum width of an element

width Sets the width of an element


Font Properties

Property
Description
Sets all the font properties in one declaration the font for
font font-family Specifies family
text

the font size of text


font-size Specifies
the font for text
font-style Specifies style
browser normal font This is default
normal The displays a style.
The browser displays an italic font style
italic
The browser displays an oblique font style
oblique
Specifies whether or not a text should be in a font peanisstteigirhtd nín*
font-variant displayed small-caps TOm-W
List Properties

Specifies the type of list-item marker


Prop/rty
none No marker
list-sle
circle The marker is a circle
list-style-image list$tvle-position liststyle-type
The marker is a square
Description disc The marker is a filled circle. This is default Square
Sets all the properties for a list in one declaration
armenian The marker is traditional Armenian numbering decimal The marker
Specifies an image as the list-item marker
is a number
Specifies if the list-item markers should appear inside or outside the
content flow The marker is a number padded by initial zeros (01, 02, 03,
decimal-leading-
zero
etc.)
georgian The traditional gan,
marker is Georgian numbering (an, ban, etc.)
The is The
lower-alpha marker lower-alpha (a, b, c, d, e, etc.) lower-greek
marker is
lower-greek (alpha, beta, gamma, etc.)
The lower-latin (a, b, C, d, e, etc.)
lower-latin marker is

The marker is lower-roman (i, i, i, iv, v, etc.)


lower-roman
The marker is upper-alpha (A, B, C, D, E, etc.)
upper-alpha
The marker is upper-latin (A, B, C, D, E, etc.)
upper-latin
The marker is upper-roman (, II, II, IV, V, etc.)
upper-roman

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

Sats.the.bnttr.nqddiangtamsleraaet*- padding-left Sets the left padding of an element


padding-right Sets the right padding of an element
padding-top Sets the top padding of an element
Positioning Properties

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)

display float Specifies the type of box an element should generate


text The cursor indicates text
The cursor indicates that an of a box is to be moved left Lnlue, blocA, tle Specifies whether or not a box should
w-resize edge (west) float
wait
The cursor indicates that the program is busy
Cle-blo
left Sets the left margin edge for a positioned box
Overiow hidden The overfilow is cipped, and the rest of the content will be
what if content overflows an element's box
Specifies happens visible The invisible scroll The overflow is clipped, but a scroll-bar is added to see
overfiow is not clipped. It renders outside the element's box. This is the rest of the content
default auto If overflow is clipped, a scroll-bar should be added to see the rest of
the content

position Specifies the type of positioning for an element


right Sets the right margin edge for a positioned box
Sets the top margin edge for a positioned box
top
visibility Specifies whether or not an element is visible
visible The element is visible. This is default

invisible still takes


hidden The element is (but up space)
Z-index Sets the stack order of an element
Print Properties

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

Insert a page break element


always after the

Avoid page break element


avoid inserting a after the
breaks element reaches a
Insert page after the until it blank left page

Insert page breaks element reaches a page


right after the until it blank right
left

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

when a break occurs


page inside an element

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

only the width of the the cells


width layout depends on table's and the columns, not the Allows a contents of browser
to the table the
lay out faster than automatic table layout
The the row
browser
can
begin to display table once the first has been received
Text Properties
Mpeniy
Description
Sets the color of text
direction
Specifies the text direction/writing direction
Itr The writing direction is left-to-right. This is default
rt The writing direction is right-to-left
line-height
letter-spacing Increases or decreases the space between characters in a text Sets the line height
text-align Specifies the horizontal alignment of text

left Aligns the text to the left


Aligns the text to the right
right
center Centers the text
Stretches the lines so that each line has equal width (like in
justify newspapers
and magazines)
text-decoration Specifies the decoration added to text
Defines a
none normal text. This is default
below the text
underline Defines a line

overline Defines a line above the text


Defines a line through the text
line-through
Defines a blinking text
blink
in a
ext-inde Speeifies the indentation of the first line text-bleck text-transform
Controls the capitalization of text

none No capitalization. The text renders as it is. This is default

Transforms the first


capitalize character of each word to uppercase

uppercase Transforms all characters to uppercase

Transforms all
lowercase characters to lowercase

Sets the vertical alignment of an element


vertical-align
how white-space inside an element is handled Increases or the
white-space Specifies word-spacing decreases space
between words in a text
CSS Pseudo-classes/elements

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

fcolor:#FF0000} unvisited link / a.visited (color:#00FFO0} /* visited link


last- 0-*Pe a:hover
(color:#FF00FF} mouse over link
Cheed a:active {color:#0000FF} selected link"
div
enasled disasled
direction:rt;
1'
border:5px solid red;
oke
padding:10px 5px 15px 20px;
top
o
padding is 10px
right
o
padding is 5px
bottom left
o
padding is 15px o is
padding 20px
padding:10px 5px 15px;
is and
O
top padding 10px o
top bottom padding are 10px o right and left padding are 5px
and left
o
right padding are 5px padding:10px;
bottom is 15px
o
padding padding:10px 5px;
Comsi i)

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

Cwy Chld 122


eleneW

n matn elenut
2n+O 2041 2n
2, 4, 6, . matA

match 4 10, 13. 3n+


Hovu (oi'h Aild isplay)

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

P:Ath-o-type 2nti) Heut-augn: t}


ext- augn: ugi
P: ntA 0 tjpe(2n)

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

put ype"email vauu"apfo "z

COLnl badntQnleiuucet ACoendic


-React; ny-COtnli
60dy wountn

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 -

inlen-asle aje- ceiu


<as nOn - oillAet Uptay
dist- iHe tasie -
Cauun d un-u
Basle
atibui = Vâlue
Tlas Sih
A -vau
ead wi
Va lu
C7
CouTa value
All CSS Pseudo Classes

Selector Example description


Example

a:active
:active Selects the active link

input:disabled Selects every disabied


:checked input:checked Selects every checked <input> element disabled

<input> element
empty p:empty Selects every <p> element that has no children enabled input:enabled Selects every

enabled <input element

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

link a:link Selects all unvisited links


valid input:valid Selects all <input> elements with a valid value

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

p::first-line Selects the first line of every <p> element

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;

for the its


Specify a tackground color every <p> elemert that is only chiid of parent:
P:only-child{
background: #ff0000;
for the its
Specify a background color every <p> element that is second p element of
parent:
p:nth-of-type(2) { background: red;

for is tiie its


Specify a background color every <p> element that second child oí

paren p:nth-child(2) { background: red;


every
not(p) Selects element that is not <p>
a

not(selector) element

<p> element second


Selects every that is the

nth-child(n child of its parent p:nth-child(2)

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

p:only-child element that is the only child


only-child Selects
every <p> of its parent

input:optional Selects <input> elements with no "required"


:Optional attribute

Selects <input> elements with a value outside


0ut-of-range input:out-of-range a specified range

read-onlyy Selects <input> eiements with a "readonly"


input:read-only
attribute specified

:read-write input:read-write Selects <input> elements with no "readonty" attribute


required 7nput:required Salects <input> elements with a "required" attribute specified

root Selects the document's root elemeni


:root

URL anchor
1arget #news:target Selects the current active #news eleent clicked on a containing that
nare

You might also like