File tree 4 files changed +38
-8
lines changed
4 files changed +38
-8
lines changed Original file line number Diff line number Diff line change 10
10
< link rel ="stylesheet " href ="styles.css ">
11
11
12
12
< style >
13
+
14
+ html {
15
+ height : 100% ;
16
+ box-sizing : border-box;
17
+ }
18
+
13
19
body {
20
+ height : 100% ;
14
21
background-color : # fff ;
15
22
color : # 333 ;
16
23
font : 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
19
26
}
20
27
21
28
* {
22
- box-sizing : border-box ;
29
+ box-sizing : inherit ;
23
30
}
24
31
25
32
section {
26
- height : 400px ;
27
- width : 500px ;
33
+ height : 100%
28
34
}
29
35
30
36
.wrapper {
Original file line number Diff line number Diff line change 10
10
11
11
12
12
< style >
13
+ html {
14
+ height : 100% ;
15
+ box-sizing : border-box;
16
+ }
17
+
13
18
body {
19
+ height : 100% ;
14
20
background-color : # fff ;
15
21
color : # 333 ;
16
22
font : 1.2em / 1.5 Helvetica Neue, Helvetica, Arial, sans-serif;
19
25
}
20
26
21
27
* {
22
- box-sizing : border-box ;
28
+ box-sizing : inherit ;
23
29
}
24
30
25
31
.wrapper {
Original file line number Diff line number Diff line change 10
10
< link rel ="stylesheet " href ="styles.css ">
11
11
12
12
< style >
13
- * {
13
+ html {
14
+ height : 100% ;
14
15
box-sizing : border-box;
15
16
}
16
17
18
+ * {
19
+ box-sizing : inherit;
20
+ }
21
+
22
+ body {
23
+ height : 100% ;
24
+ }
25
+
17
26
.page-header ,
18
27
.page-footer {
19
28
background-color : rgb (75 , 70 , 74 );
28
37
}
29
38
30
39
.preview {
31
- height : 400 px ;
40
+ height : 100 % ;
32
41
overflow : auto;
33
42
}
34
43
</ style >
Original file line number Diff line number Diff line change 10
10
< link rel ="stylesheet " href ="styles.css ">
11
11
12
12
< style >
13
- * {
13
+ html {
14
+ height : 100% ;
14
15
box-sizing : border-box;
15
16
}
16
17
18
+ * {
19
+ box-sizing : inherit;
20
+ }
21
+
22
+ body {
23
+ height : 100% ;
24
+ }
25
+
17
26
.page-header ,
18
27
.page-footer {
19
28
background-color : rgb (75 , 70 , 74 );
26
35
}
27
36
28
37
.preview {
29
- height : 400 px ;
38
+ height : 100 % ;
30
39
overflow : auto;
31
40
}
32
41
</ style >
You can’t perform that action at this time.
0 commit comments