Skip to content

Commit 4180cc9

Browse files
Merge branch 'master' of github.com:mdn/css-examples
2 parents f364909 + 2cf48cf commit 4180cc9

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

learn/rwd/float-based-rwd.html

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1">
56
<title>A simple float-based responsive design</title>
67
<style>
78
body {

learn/tasks/float/marking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In task 2 we check that the student understands how to clear an element from a f
3333

3434
## Task 3
3535

36-
In the final task the student is asked to use the most up to date method of clearing the box underneath the floated item. Therefore they should add `display: flow-root` to the class for `.box`. Other methods might be to use `overflow` or a clearfix hack, however the learning materials detail the `flow-root` method as the modern way to acheive this.
36+
In the final task the student is asked to use the most up to date method of clearing the box underneath the floated item. Therefore they should add `display: flow-root` to the class for `.box`. Other methods might be to use `overflow` or a clearfix hack, however the learning materials detail the `flow-root` method as the modern way to achieve this.
3737

3838
```
3939
.box {

learn/tasks/grid/marking.md

+14
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,20 @@ I have used the shorthands below, however it would be correct for the student to
2929
grid-row: 2 / 4;
3030
}
3131
```
32+
### Additional question
33+
34+
This extra question requires a little bit of research. One way of achieving this would be to use `order`, which we've encountered in the flexbox tutorial.
35+
```
36+
.item1 {
37+
order: 1
38+
}
39+
```
40+
Another valid solution is to use `z-index`:
41+
```
42+
.item1 {
43+
z-index: 1;
44+
}
45+
```
3246

3347
## Grid Layout Three
3448

learn/tasks/position/marking.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Floats Marking Guide
22

3-
The aim of the tasks are to demonstrate an understanding of the properties covered in the [Float](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning) lesson in Learn Web Development on MDN.
3+
The aim of the tasks are to demonstrate an understanding of the properties covered in the [Positioning](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Positioning) lesson in Learn Web Development on MDN.
44

55
## Task 1
66

@@ -20,7 +20,7 @@ This task covers understanding of `position: relative` and `position: absolute`
2020

2121
A likely issue will be that the student adds `position: absolute` to the child but does not apply `position: relative` to the container. In that case the target will end up being positioned according to the viewport.
2222

23-
For the extra task, the student needs to add a negative `z-index` to the target, for example `z-index:2`.
23+
For the extra task, the student needs to add a negative `z-index` to the target, for example `z-index: -2`.
2424

2525
## Task 2
2626

@@ -30,4 +30,4 @@ In task 2 we check understanding of `position: fixed` with a slightly different
3030
.sidebar {
3131
position: fixed;
3232
}
33-
```
33+
```

0 commit comments

Comments
 (0)