Skip to content

Commit 8bc5f76

Browse files
committed
quick fix to size of preview
1 parent b8e8d82 commit 8bc5f76

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

learn/tasks/images/object-fit.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
<title>Images and forms 1: covering the box with an image</title>
66
<link rel="stylesheet" href="../styles.css" />
77
<style>
8+
.preview {
9+
min-height: 450px;
10+
}
811
.box {
912
border: 5px solid #000;
1013
width: 400px;

learn/tasks/sizing/marking.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,13 @@
55
There are two boxes, the first should be given a minimum height, in which case it will expand to take the additional content but if the student removes some content the box will be at least as tall as the min-height. The second is given a fixed height which will cause content to overflow.
66

77
```
8+
.box1 {
9+
min-height: 100px;
10+
}
811
12+
.box2 {
13+
height: 100px;
14+
}
915
```
1016

1117
## Task 2 percentages

0 commit comments

Comments
 (0)