-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpseudo-elements.selectors.html
More file actions
123 lines (121 loc) · 3.75 KB
/
pseudo-elements.selectors.html
File metadata and controls
123 lines (121 loc) · 3.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
table{
width: 100%;
border-collapse: collapse;
}
table, th, td{
border: 1px solid;
}
</style>
</head>
<body>
<h1>Pseudo Elements</h1>
<pre style="border: 1px solid; width: 250px;">
selector::pseudo-element{
property:value
}
</pre>
<hr>
<table>
<thead>
<tr>
<th>Pseudo Element Adı</th>
<th>Örnek Kullanım</th>
</tr>
</thead>
<tbody>
<tr>
<style>
p::after{
content: " konuşuyor..."
}
</style>
<td>::after</td>
<td>
<p>Taner Saydam</p>
<p>Tugay Saydam</p>
<p>Seval Saydam</p>
</td>
</tr>
<tr>
<style>
p::before{
content: "Sayın "
}
</style>
<td>::before</td>
<td>
<p>Taner Saydam</p>
<p>Tugay Saydam</p>
<p>Seval Saydam</p>
</td>
</tr>
<tr>
<style>
p::first-letter{
background-color: yellow;
}
</style>
<td>::first-letter</td>
<td>
<p>Taner Saydam</p>
<p>Tugay Saydam</p>
<p>Seval Saydam</p>
</td>
</tr>
<tr>
<style>
p::first-line{
background-color: yellow;
}
</style>
<td>::first-line</td>
<td>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure sit vitae natus ipsa quibusdam quos minus cum dolore eum, doloribus delectus eaque molestias architecto reiciendis, libero, deserunt a eius perspiciatis.</p>
</td>
</tr>
<tr>
<style>
::marker{
color: red;
}
</style>
<td>::marker</td>
<td>
<ul>
<li>Lorem.</li>
<li>Lorem.</li>
<li>Lorem.</li>
<li>Lorem.</li>
</ul>
<ol>
<li>Lorem.</li>
<li>Lorem.</li>
<li>Lorem.</li>
<li>Lorem.</li>
</ol>
</td>
</tr>
<tr>
<style>
::selection{
color: red;
background-color: cornflowerblue;
}
</style>
<td>::selection</td>
<td>
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Assumenda sed minus ducimus ut facere, ipsum repellat qui error ipsam, vel laudantium laboriosam, voluptates voluptatibus provident tenetur nesciunt deserunt? Rem, ipsam?</p>
</td>
</tr>
</tbody>
</table>
</body>
</html>