Skip to content

Commit df0d01a

Browse files
committed
Fixes for small screens
1 parent cf6ad4f commit df0d01a

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

01 - Drum Kit/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33

44
<head>
55
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
67
<title>Drum Kit</title>
78
<link rel="stylesheet" href="style.css">
89
<link rel="icon" href="assets/drum.png">
910
<link rel="icon" href="assets/favicon.png">
1011
</head>
1112

1213
<body>
14+
<div id="container">
1315
<h1 id="title">Drum Kit</h1>
1416
<div class="keys">
1517
<div data-key="65" class="A key">
@@ -69,6 +71,7 @@ <h1 id="title">Drum Kit</h1>
6971
</p>
7072
</footer>
7173

74+
</div>
7275
<script src="main.js"></script>
7376

7477
</body>

01 - Drum Kit/style.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ h1 {
1818
color: #FEFFE2;
1919
font-family: "Arvo", cursive;
2020
text-align: center;
21+
margin-bottom: 0;
2122
}
2223

2324
span {
@@ -28,7 +29,7 @@ span {
2829
display: flex;
2930
flex-wrap: wrap;
3031
flex: 1;
31-
min-height: 40vh;
32+
align-content: center;
3233
align-items: center;
3334
justify-content: center;
3435
}
@@ -40,7 +41,7 @@ span {
4041
font-size: 1.5rem;
4142
padding: 1rem .5rem;
4243
transition: all .07s ease;
43-
width: 100px;
44+
width: 78pt;
4445
text-align: center;
4546
color: white;
4647
background-color: #212121;
@@ -73,14 +74,17 @@ footer {
7374
text-align: center;
7475
color: white;
7576
font-size: 1.5rem;
76-
position: absolute;
77-
left: 0;
78-
right: 0;
79-
bottom: 0;
8077
margin-bottom: 0;
8178
padding: 5px;
8279
}
8380

8481
footer a:visited {
8582
color: inherit;
83+
}
84+
85+
#container{
86+
height: 100vh;
87+
display: flex;
88+
flex-direction: column;
89+
justify-content: space-between;
8690
}

0 commit comments

Comments
 (0)