-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhome.css
54 lines (47 loc) · 1.31 KB
/
home.css
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
/* Style the navigation menu */
.navbar .navbar1 {
width: 100%;
background-color: #555;
overflow: auto;
}
/* Navigation links */
.navbar .navbar1 a {
float: left;
padding: 12px;
color: white;
text-decoration: none;
font-size: 17px;
width: 25%; /* Four equal-width links. If you have two links, use 50%, and 33.33% for three links, etc.. */
text-align: center; /* If you want the text to be centered */
}
/* Add a background color on mouse-over */
.navbar .navbar1 a:hover {
background-color: #000;
}
/* Style the current/active link */
.navbar .navbar1 a.active {
background-color: #4CAF50;
}
/* Add responsiveness - on screens less than 500px, make the navigation links appear on top of each other, instead of next to each other */
@media screen and (max-width: 500px) {
.navbar a {
float: none;
display: block;
width: 100%;
text-align: left; /* If you want the text to be left-aligned on small screens */
}
}
body, html {
height: 100%;
margin: 0;
}
/*.bg {
/* The image used */
background-image: url("https://www.w3schools.com/howto/img_parallax.jpg");
/* Full height */
height: 100%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}*/