averageandyyy commited on
Commit
2c14936
·
1 Parent(s): 317a04b

fixed overlap issue with background color, fixed image sizing

Browse files
Files changed (1) hide show
  1. style.css +17 -5
style.css CHANGED
@@ -8,6 +8,16 @@
8
  box-sizing: border-box;
9
  }
10
 
 
 
 
 
 
 
 
 
 
 
11
  body {
12
  min-width: 290px;
13
  background-color: #2b5b84;
@@ -17,7 +27,7 @@ body {
17
  }
18
 
19
  main {
20
- margin-left: 310px;
21
  padding: 20px;
22
  }
23
 
@@ -27,7 +37,7 @@ main {
27
  min-width: 290px;
28
  top: 0px;
29
  left: 0px;
30
- width: 300px;
31
  height: 100%;
32
  border-right: solid;
33
  }
@@ -81,20 +91,22 @@ a:hover {
81
  @media (max-width: 815px) {
82
  #navbar {
83
  display: block;
84
- position: absolute;
85
  top: 0;
86
  padding: 0;
87
  margin: 0;
88
  width: 100%;
89
- max-height: 275px;
90
  border: none;
91
  z-index: 1;
 
92
  }
93
  #main-doc {
94
  display: block;
95
  position: relative;
96
  margin-left: 0px;
97
- margin-top: 270px;
 
98
  }
99
  }
100
 
 
8
  box-sizing: border-box;
9
  }
10
 
11
+ #header {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ }
16
+
17
+ #logo {
18
+ width: 290px;
19
+ height: 82px;
20
+ }
21
  body {
22
  min-width: 290px;
23
  background-color: #2b5b84;
 
27
  }
28
 
29
  main {
30
+ margin-left: 400px;
31
  padding: 20px;
32
  }
33
 
 
37
  min-width: 290px;
38
  top: 0px;
39
  left: 0px;
40
+ width: 400px;
41
  height: 100%;
42
  border-right: solid;
43
  }
 
91
  @media (max-width: 815px) {
92
  #navbar {
93
  display: block;
94
+ position: fixed;
95
  top: 0;
96
  padding: 0;
97
  margin: 0;
98
  width: 100%;
99
+ max-height: 350px;
100
  border: none;
101
  z-index: 1;
102
+ background-color: #2b5b84;
103
  }
104
  #main-doc {
105
  display: block;
106
  position: relative;
107
  margin-left: 0px;
108
+ margin-top: 325px;
109
+
110
  }
111
  }
112