-
Notifications
You must be signed in to change notification settings - Fork 0
/
target tab.html
97 lines (81 loc) · 1.56 KB
/
target tab.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<style>
html{
height:100%;
}
body{
background-image:linear-gradient(to right,#0C796A, #0B9A29);
background-size:cover;
background-repeat:no-repeat;
}
.header{
color: White;
margin-left:25%;
margin-top:50px;
}
.tab{
position:relative;
}
.tab li{
float:left;
overflow:hidden;
list-style-type: none;
display: block;
margin-right:1px;
left:70px;
cursor: pointer;
position: relative;
color: WHITE;
background: #6543F1;
}
.tab li a{
display:block;
text-decoration: none;
color:white;
padding:10px;
}
.tab section{
z-index:0;
width:70%;
padding:5px;
position: absolute;
top:39px;
left:110px;
color: black;
background: white;
border-radius:0px 5px 5px 5px;
box-shadow: 0px 2px 2px 0px grey;
}
.tab li:hover{
background-color:black;
}
.tab section:first-child{
z-index:1;
}
.tab section:target{
z-index:2;
margin:0;
}
.tab section:target + li{
background:black;
}
</style>
</head>
<body>
<h2 class="header">Pure HTML CS Built Tab </h2>
<ul class="tab">
<section id="html"><h4>This is pure HTML CSS tabs designed for your next project</h4>
<p>HTML: used for page structuring</p>
</section>
<li><a href="#html">HTML</a></li>
<section id="css"><h4>This is pure css tabs design using HTML and CSS only</h4>
<p>CSS: used for page Styling</p>
</section>
<li><a href="#css">CSS</a></li>
<section id="js"><h4>In this tutorial we design tabs for website without JavaScript.</h4><p>JS: not Used.</p></section>
<li><a href="#js">JS</a></li>
</ul>
</body>
</html>