Unit-3
Unit-3
element
225 popstral
Layout
of a
281 Jos hot
Jes
Syntax
၁၈
declaration (contains more
declarati
name
Jual Separated
by;"
3 within the
curdly braces declaration blad
2) Lorternal ess
3
guld
External css.par: Golos
خرابے اور او
Inline css (Percular Paragraph, heading
element yasm)
فى
السوم
ex <style> <w prissed
s
color:
"blure;
F
<style
>
<body
>
<p style="color:
red;">
This is a inline ess (IP)
<bod
y>
foort-size: 2px;
•P { color: blue;
}
his color: red; text-align:
center}
Listyle)
Internal ess
ess
to red.
roc
art oldfin
2300664
<html>
0900
xotave
101
(N)
<head>gs: ss12 toot: suld: 60/05
(title), Internal ces
(title)
wald willown to theads
<style>
at boppo
1100/22
drporals do ww
wo
slut of
frowns
body { background-
color: green. I
hi & ex color!
{
bex color: blue} dext align
to
P {{ color:
re
<style>
2
t
<body
>
odig
good
ورد
الله
<phoo
t)
-
External ess
style
leAn external sheet is used to d
for many
To
use
HTML
LED the style
pages.
an external style sheet, add a link to it the
<head>
section o
<none> proofs
olla
[head
(Link rel="
<head>
<body
>
<W>
- لعدد
ملتج
HTML
page
.
ག•9
.1
"stylesheet"
href="style.css")
"style.css"
(boem)
Spboot
s
sotos/s2 2015
&
color: blue;
). Judialto (hol
121
Rhod
soteres."- 200ls rd)
<w)
gribeed
gribood unquac
1612
selas by
Css Selector
223 30xd
ID Selector - (#) targets a single element
funique efen
on its id attribute
JMTH
<head>
<style>
bps
های او دام
خود
AD JMTN
center
[boom]
#P1 { text-align:
center;
color:
Hello World]
green
green;
}
<style>
(heady
30
2,9/1
2
او
elements based
on their
(intmey
pribado 21 21)
2T
<head>
styling.
10.
(style)
hold
Jogu: boles
9
•
center
&
asbood
{
text-align: center;
Color: red;
021 3/12 perfont-size: 200pn;
(3/11 200)
Jane
Jadapte ag
paragraph (14)
Universal Selector
(*)
ro 220
<head>
<style
>
olospa toss al
*DS { text-align:center; TH
font-size: 300 pri vor
pood color: red;.
}
<style
>
0/P
<body
>
<bod
y
i ceniversal selector (4)
Wiko Heading 1 kg); sett. 232w out
He wish
<4>
<p id="us"> Mee too (IP)
<P>
<P> and mee (IP)
<intme
dha gupi
Jasmots
supines
Grouping
selector
style
definitions.
&
supinu no
SAT
AHWs Jaamela
as color red-
Quid
39Y75001)
Selects all the
w{ text-align:
center;
h2 PS
color: red; pofies: mo
tapt
1/2 { text-align:
Right,
foreslo 1-
center
f
text-align: cenh
color: red
}
· color:
"gezeen red;
<body
>
(21
)سرام
<hi>
P & Text-align: center,
<h2>
color:
red; }
(41 dos
KP)
الله
Cubod
a
rob9b2 10269 vi
css selector
Element selector - The element selector
selects HTMC elements based on the element name
P
&{ background-
color: blue; &
text-align:
center
Id selector
أبو عمر جاودامه
داس
الد اماوم
<ubed)
Wott pad
element to select a specific
elemen
The 10 of an element is
GU 50
in selector is used to on
bage, so
the
uniqué element parkg)
element with
a
specific id (#)
<!DOCTYPE
html>
htmer
dt diw 2tasoss JNTH
head)
<style
>
#Paragraph
1
Anglo-
AKSA
4
غ او مال
slut
e
00103 : لحم
blue
[/style>
(μbod
output
в
This 13
paragraph}
<thead>
13
body
</html>
"Paragraphy">
idz
{P This B
<body
>
Lehtmes
pap
*India 19
class selector
Selects HTML elements with a specific clam
attribute
(•) - character.
Jadiation
ocenters
25 Nov 2dists of 21tudiette
<p
class="center">
(he clan =
"center">
Wood
} (tiga) a
Calphas) woods
AJ
<bo
dy}}
"> 19
Wood
h1 { text-align:
center;
color: red;
}
00/ hin2 Pf
사
(1) brus
=
odio han
text-align:center-
Alribute
Selector
6010/02
200/5
Wat pessible to style HTML elements that
have speenfic
attributes or attributes values.
ex
boods
Grotrage attribute
select all Lay element with a target element:
a
[target]
{{
back
</
style>
<body
>
=
ground =
coloo:
yellow;
20051)
WIKIPEDIA as
Loza 223
google.c
om">
خداوط
Google play sto
https://www.
Posters in
disney com 2
hod DISEY.
(2)_(top)
N
Ta
g
Selector (Element Selector) lif
P{
text-align: center;
color: red;
bicoprolled output
10
0
(P)
.
<p> -
{Pid
<p id="para 1" > me too
< LP)
(P) - <P)
Sane
css
Properties
Text and font
Properties
4
り
taid
- color bg color backgroun of -
color : yellow;
• image -> bg image
→ backy
calize I size &
background-
image:
unl
Display &
Positioning
display controls how
elements are
→
displayed
→ displays
position Element positioning
position: absolute; top/Left/right /
bottom positioning relative to parent-
>
Lind
Properties
=
top: sopx; left:
20pn;
خوامی
top: sopn; 2 hot
2002 left: 100pn,
Love
z-index: 10pm;
hled! In
}
Sapled for
List
properties
For
style-type:
circle;
List-style- image:
"ual.png");
List-style-position:
"inside;
Jspond
ex
Border properties
• border-
box {
border: 3px solid blue, jus border
redius: 10pm; (!!) padding:
10px;
Background
properties
ex:
body
{
Jusq
ནས་
ལྷ
ད
background-color: red;
background-image:
"ganeshbaba@png";"
background- size: "cover",
background-repeat: no-repeat;
(Wanted") background-
position: center;
List ess
}
gothes
cnti204 adt
set
set
i
mage -Add
background
an the List item market.
List-style-type:
cradle,
List-style-type: square,
ex
ul. a {
J
ulo b &
Š
OL.C
{
List-style-type: upper-
roman;
2.
J
olg & List-style-type: Lower-alpha;
G
old Jus
<style
>
theads
Subho
darling
(Bod
y)
{ul clom = "a"}
(4)-(1l) (Lis (Li)
—(1) <>
(ul clos=
"b">
od
(ii)
༢༩༦
)
《ru ༥》
4106
(ol clom =
"d")
(Le) <li>-
Rho
d
Image"
w
621019
ul.a{
positio
n
ul.b
<bod
y>
List style sheet: Inside;
L
260100
List-style- position:
outside;
(The)
<ul class="a") outs
(pre
Li- <li>
<ul>
(क)
ful Flan =
ub
220 62
(me)
()نا
"background-eeter:
#ff9999; padding:
20pn;
backgroun of color:
#3399-ff; padding
: 20px;
229
uld
}
ه فانان
2
3
eldar dipint
prot, sidnt
la
backgrou
nd
color:
لمما
#..
padding: 5pm;
margin = Left: 35pn;
ul li { 4
001 d
"{
background: #...;
#·
จา
espood
001: depic
}
Amage
color0:
pordings
margin-
left"
2
3
3.
Jo
br
No
padd
y
Table Border CSS
=>
To
specify
<style>
table borders in css, use the
border put
>> <table) (tel) (th) elements.
table (d), th, td {
border: 1px solid; d
ex
Full-Wighth Table
table {
"width: 100%;
J
Frost. N Last N
2x
Bouq
Collapse Table Border
th { height: Hope;
}
ess Table alignment
(2) Horizontal (Left, righly
center)
2 Vertical (top, bottom of
midolle)
Horizontal
table of booger: Ipn
solid}
.blog
table, th, td { border-collapse: collapse;
width: 100%; f
th, td { text-align:
left/right/center; }
tel
efe
۲۰ مداد
table thita & border-collapse:
collapse; widths/rog th td { text-align:
top/bottom/middle?
Left
keft
卢
the
10077
Table color
that
}
sibpica \ molted" data-heal phot
201
Fo21009
pespood combed
ssage
podolog
aldat
9ldot
sldarveft
9.b was 41 craprod? aldet
Exost: dibin (follog: segellos supood
padaldal
(13) 2547
Chp a
da vs
of
Links: So using
the
the (ul), and<li>
elements makes
perfec
t
Sense.
<html>
Linom
。 News
blue colo
• Contant
margin:0;
&
adding:0;
List-style-type:
none;
Navigation Bar
Vertical
H001200tal
Navigatio
n
Navigation
Bar
Bar.
Vertical Navigation
Bar
<style>
List-style-type:
none;
margin: 0;
padding: 0.
Lia
re
display: block;
width: 60 pn;
background + color:#1 uad;
<ul>
Հրաչ
(4) <a href="#home"> Home (X)
<li><a href
CC
**
[display:
blocks
allows
Display
s
as to specify
the Links as block
ele
makes the whole Link area
clickable. & also specify the width
(paddling, mann height etc)
210913 2015
Smolt H.
Horizontal
Navigation By
Bar
: jorde) (0)
(1) trusted
test
Suld
راس
ald: polqain
19
JOSH V
J214