-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtut33.html
More file actions
116 lines (104 loc) · 3.33 KB
/
tut33.html
File metadata and controls
116 lines (104 loc) · 3.33 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
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Before and after pseudo selector</title>
<link href="https://fonts.googleapis.com/css2?family=Lexend+Tera&display=swap" rel="stylesheet">
<style>
body {
/* background: url('https://source.unsplash.com/collection/190727/1600x900') no-repeat center center/cover; */
/* background-position: center;
background-size: cover; */
/* background: linear-gradient(to bottom right, #332b8d, #d054e4) ;
background-repeat: no-repeat;
background-position: center center;
background-attachment:fixed;
background-size:cover; */
/* background: url() postion size repeat attachment; -> background full screen,+
short hand of above code */
margin: 0px;
padding: 0px;
background-color: black;
color: white;
}
header::before{
content: "";
background: url('https://source.unsplash.com/collection/190727/1600x900') no-repeat center center/cover;
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
z-index:-1;
opacity: .3;
}
/* header::after{
content: "";
background: url('https://source.unsplash.com/collection/190727/1600x900') no-repeat center center/cover;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0.5;
} */
.navigation {
font-family: 'Lexend Tera', sans-serif;
font-size: 20px;
display:flex;
/* border: 2px solid rgb(98, 0, 255); */
/* height: 300px; */
/* align-items: flex-start; */
}
li {
list-style: none;
padding: 18px 20px;
}
#contact{
/* border: 2px red solid; */
margin-left: auto;
}
section {
font-family: 'Lexend Tera', sans-serif;
height: 500px;
margin: 3px 23px;
/* border: 2px solid red; */
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
/* section::before{
content: "this is a content";
} */
h1 {
font-size: 4rem;
}
P {
text-align: center;
}
/* section::after{
content:"this is a content"
} */
</style>
</head>
<body>
<header>
<nav class="navbar">
<ul class="navigation">
<li class="item">Home</li>
<li class="item">About</li>
<li class="item">Services</li>
<li id="contact"class="item">Contact us</li>
</ul>
</nav>
</header>
<Section>
<h1>Welcome to Coding World</h1>
<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Similique fugit veritatis laboriosam soluta
impedit unde qui cum sapiente! Temporibus sed .</p>
</Section>
</body>
</html>