-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathyes.html
More file actions
112 lines (89 loc) · 1.74 KB
/
yes.html
File metadata and controls
112 lines (89 loc) · 1.74 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
<!DOCTYPE html>
<html>
<head>
<style>
*{
margin: 0;
padding: 0;
}
.tabs{
display: block;
position: relative;
}
.tabs .tab{
float: left;
display: block;
overflow: hidden;
}
.tabs .tab .radioClass{
position: absolute;
}
.tabs .tab label {
width:100%;
display: block;
padding: 10px;
cursor: pointer;
position: relative;
color: WHITE;
background: GREY;
}
.tabs .content {
display:none;
overflow: hidden;
width:150px;
padding: 25px;
position: absolute;
top: 0px;
left: 0;
color: #DFDFDF;
opacity:0;
transition: all 400ms ease-out;
}
.tabs>.tab .radioClass:checked + label {
top: 0;
background: #303030;
color: #F5F5F5;
}
.tabs>.tab .radioClass:checked ~ .content {
display:block;
opacity: 1;
transition: opacity 400ms ease-out;
}
/*#red{
background-color: RED;
}
#yellow{
background-color: YELLOW;
color:black;
}
#green{
background-color: GREEN
}*/
</style>
</head>
<body>
<ul class="tabs">
<li class="tab">
<input class="radioClass" type="radio" name="tabs" checked="checked" id="tab1" />
<label for="tab1">Red</label>
<div id="red" class="content">
<h1>RED</h1>
</div>
</li>
<li class="tab">
<input class="radioClass" type="radio" name="tabs" id="tab2" />
<label for="tab2">Yellow</label>
<div id="yellow" class="content">
<h1>YELLOW</h1>
</div>
</li>
<li class="tab">
<input class="radioClass" type="radio" name="tabs" id="tab3" />
<label for="tab3">Green</label>
<div id="green" class="content">
<h1>GREEN</h1>
</div>
</li>
</ul>
</body>
</html>