Documente Academic
Documente Profesional
Documente Cultură
Lecia 7
<h1>LECIA 7</h1>
<ul>
<li>List</li>
<li>Table</li>
<li>Pseudo-clase</li>
<li>Pseudo-elemente</li>
</ul>
<html>
List
<html>
List
<html>
List
<html>
List
<html>
List
<html>
List
Proprieti
Proprietate
Descriere
Valori posibile
list-style
list-style-image
Seteaz o imagine ca
marker
url(cale/catre/imagine.jpg);
list-style-position
inside | outside
list-style-type
<html>
Table
Cu CSS
<html>
Table
<html>
Table
<html>
Table
<html>
Table
border-collapse: separate|collapse;
<html>
Pseudo-clase
<html>
Pseudo-clase
<html>
Pseudo-clase
<html>
Pseudo-clase
Pseudo-clasa :first-child
:first-child selecteaz primul copil al unui anume printe
<html>
<head>
<style>
p:first-child {
color: red;
}
</style>
</head>
<body>
<p>Ana are mere.</p>
<p>George are pere.</p>
</body>
</html>
<html>
Pseudo-clase
Pseudo-clasa :first-child
Primul span din fiecare paragraf
<html>
<head>
<style>
p span:first-child {
color: red;
}
</style>
</head>
<body>
<p><span>Ana</span> are <span>mere</span>.</p>
<p><span>George</span> are <span>pere</span>.</p>
</body>
</html>
<html>
Pseudo-clase
Selector
Exemplu
Explicarea exemplului
:link
a:link
:visited
a:visited
:active
a:active
:hover
a:hover
:focus
input:focus
:first-child
p:first-child
:lang(language)
p:lang(ro)
<html>
Pseudo-elemente
<html>
Pseudo-elemente
Pseudo-elementul ::first-line
<html>
<head>
<meta charset="utf-8">
<style>
p::first-line {
color: red;
}
</style>
</head>
<body>
<p>Populaia oraului Timioara a fost
iniiatoarea Revoluiei romne. ntre 16 i 20
decembrie 1989, ea a purtat, de una singur, un
nverunat rzboi cu unul dintre cele mai puternice i
mai odioase sisteme represive din lume. A fost o
ncletare cumplit pe care noi, timiorenii, o
cunoatem la adevratele ei proporii.</p>
</body>
</html>
<html>
Pseudo-elemente
Pseudo-elementul ::first-letter
<html>
<head>
<meta charset="utf-8">
<style>
p::first-letter {
font-weight: bold;
font-size: 30px;
}
</style>
</head>
<body>
<p>Nu tiu alii cum sunt, dar eu, cnd m
gndesc la locul naterii mele, la casa
parinteasc din Humuleti ...</p>
</body>
</html>
<html>
Pseudo-elemente
<html>
Pseudo-elemente
Selector
Exemplu
Explicarea exemplului
::first-letter
p::first-letter
::first-line
p::first-line
::before
p::before
::after
p::after