-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtes5.html
78 lines (68 loc) · 2.01 KB
/
tes5.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Custom Alerts</title>
<style>
/* Basic Alert Styles */
.alert {
padding: 15px;
margin: 10px 0;
border-radius: 5px;
font-family: Arial, sans-serif;
font-size: 16px;
position: relative;
color: #fff;
display: flex;
justify-content: space-between;
align-items: center;
}
/* Alert Types */
.alert-success {
background-color: #4CAF50;
}
.alert-warning {
background-color: #FFC107;
color: #333;
}
.alert-danger {
background-color: #f44336;
}
.alert-info {
background-color: #2196F3;
}
/* Close Button */
.alert .close-btn {
font-size: 18px;
font-weight: bold;
color: #fff;
cursor: pointer;
background: none;
border: none;
}
</style>
</head>
<body>
<!-- Success Alert -->
<div class="alert alert-success">
Success! Your action was completed.
<button class="close-btn" onclick="this.parentElement.style.display='none';">×</button>
</div>
<!-- Warning Alert -->
<div class="alert alert-warning">
Warning! Check your inputs.
<button class="close-btn" onclick="this.parentElement.style.display='none';">×</button>
</div>
<!-- Danger Alert -->
<div class="alert alert-danger">
Error! Something went wrong.
<button class="close-btn" onclick="this.parentElement.style.display='none';">×</button>
</div>
<!-- Info Alert -->
<div class="alert alert-info">
Note: Remember to save your work.
<button class="close-btn" onclick="this.parentElement.style.display='none';">×</button>
</div>
</body>
</html>