-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlesson5
More file actions
72 lines (65 loc) · 1.62 KB
/
lesson5
File metadata and controls
72 lines (65 loc) · 1.62 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
-------------font-family-----------
font-family: 'Times New Roman', Times, serif; : you can choose any font you need from google fonts.
-------------font-size-----------
font-size: 40px; >> to change font size
-------------font-varient , weight-----------
font-variant: small-caps;
font-weight: bold;
-------------mouse cursor-----------
cursor: pointer; >> to change the type of cursor , try another types.
-------------table styling-----------
>>>>>html code<<<<<
<body>
<table>
<thead>
<tr>
<td>Name</td>
<td>Age</td>
<td>Email</td>
</tr>
</thead>
<tbody>
<tr>
<td>Osama</td>
<td>38</td>
<td>o@nn.sa</td>
</tr>
<tr>
<td>Ahmed</td>
<td>38</td>
<td>o@nn.sa</td>
</tr>
<tr>
<td>Sayed</td>
<td>38</td>
<td>o@nn.sa</td>
</tr>
<tr>
<td>Ali</td>
<td>38</td>
<td>o@nn.sa</td>
</tr>
</tbody>
</table>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>.
==========css code===========
body {
font-family: Arial, Helvetica, sans-serif; >>> to change font family
}
table { : this for all aitems in the table
width: 100%;
border: 1px solid #CCC;
border-spacing: 0;
}
table td { : this for each cell in the table
padding: 15px;
background-color: #EEE;
border: 1px solid #CCC;
}
table thead td { : this is just for the head
background-color: #f44336;
color: #FFF;
font-weight: bold;
text-align: center;
border-color: #F35246;
}