-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (50 loc) · 1.84 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Playing with CSS Grids</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="puzzle">
<h1>Puzzle time!</h1>
<p>Using CSS Grid Layout put the pieces in the correct order.</p>
<hr>
<div class="game">
<div class="piece p1"></div>
<div class="piece p2"></div>
<div class="piece p3"></div>
<div class="piece p4"></div>
<div class="piece p5"></div>
<div class="piece p6"></div>
<div class="piece p7"></div>
<div class="piece p8"></div>
<div class="piece p9"></div>
</div>
</div>
<div class="code">
<h2>CSS Code</h2>
<style id="codeEditor" contenteditable>
.game{
display: grid;
grid-template-columns: repeat(3,1fr);
}
</style>
<hr>
<button id="solve">Solve it!</button>
<button id="solveTwo">Solve it (another option)!</button>
<button id="reset">Reset</button>
<hr>
<h2>Useful links</h2>
<ul>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Line-based_Placement_with_CSS_Grid" target="_blank" rel="noopener noreferrer">Solution 1 (info)</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Grid_Template_Areas" target="_blank" rel="noopener noreferrer">Solution 2 (info)</a></li>
</ul>
</div>
</div>
<script src="script.js"></script>
</body>
</html>