-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle1.css
89 lines (77 loc) · 1.68 KB
/
style1.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
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
.container {
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-rows: .2fr 1.5fr 1.5fr .3fr;
height: 100vh;
grid-template-areas: "nav nav nav nav" "sidebar main main main" "sidebar left right right" "sidebar footer footer footer";
font-family: Arial, Helvetica, sans-serif;
text-align: center;
text-decoration: dotted;
text-transform: uppercase;
font-weight: 600;
}
nav {
grid-area: nav;
background-color: bisque;
}
main {
text-align: left;
grid-area: main;
background-color: tomato;
}
.p-box {
border: 1px solid black;
height: 400px;
margin: 20px;
position: relative;
background-image: url("Images/img1.jpg");
color: aliceblue;
background-repeat: repeat;
background-position: center left;
}
.p-box h1 {
position: absolute;
top: 100px;
left: 50px;
}
.p-box h2 {
position: absolute;
right: 50px;
bottom: 100px;
}
#sidebar {
grid-area: sidebar;
background-color: lightgreen;
}
#left {
grid-area: left;
background-color: lightpink;
}
#right {
padding: 5px;
grid-area: right;
background-color: lightskyblue;
}
footer {
grid-area: footer;
background-color: lightsalmon;
}
.nested {
color: rgb(28, 103, 214);
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-auto-rows: 70px;
grid-gap: 1em;
}
.nested>div {
border: 1px solid black;
padding: 20px;
}
@media only screen and (max-width:768px) {
.container {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: .4fr 2fr 1.5fr 1.5fr 1fr .6fr;
grid-template-areas: "nav" "sidebar" "main" "left" "right" "footer";
}
}