-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTask2_CSS.html
More file actions
115 lines (95 loc) · 2.75 KB
/
Task2_CSS.html
File metadata and controls
115 lines (95 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
ul {
list-style-type: none;
margin: 0;
padding: 0;
width: 200px;
background-color: rgb(34, 246, 246);
}
li a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
li a:hover {
background-color: red;
color: yellow;
}
.box1 {
border:2px solid black;
width: 171px;
}
body {
margin: 22px;
}
</style>
<style>
tr {
list-style-type: none;
margin: 0;
padding: 0;
width: 200px;
background-color: #c1bfbf;
}
td a {
display: block;
color: #000;
padding: 8px 16px;
text-decoration: none;
}
tr a:hover {
background-color: red;
color: yellow;
}
.box {
border: 2px solid black;
width: 360px;
}
body1 {
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<div class="box1">
<h1>
<ul style="width: fit-content;">
<li style="background-color: rgb(236, 182, 90);"><a href="deafault.asp">Home</a></li>
<li><a href="https://www.w3schools.com/java/" target="_blank">JAVA</a></li>
<li><a href="https://www.w3schools.com/css/" target="_blank">CSS</a></li>
<li><a href="https://www.w3schools.com/html/" target="_blank">HTML</a></li>
<li><a href="https://getbootstrap.com/docs/5.3/getting-started/introduction/" target="_blank">Bootstrap</a>
</li>
</h1>
</ul>
</div>
</body>
<body1>
<div class="box">
<table>
<tr>
<td style="background-color: gray;"><a href="deafault.asp">Home</a></td>
<td><a href="https://www.w3schools.com/java/" target="_blank">Java</a></td>
<td><a href="https://www.w3schools.com/html/" target="_blank">Html</a></td>
<td><a href="https://www.w3schools.com/css/" target="_blank">Css</a></td>
<td><a href="https://getbootstrap.com/docs/5.3/getting-started/introduction/"
target="_blank">Bootstrap</a>
</tr>
</table>
</div>
</body1>
</html>