Hello. This step in this module is asking us to " Add another @media
rule to apply if the browser window is wider than 769px
but smaller than 1199px
."
Wider than 769px would be 770px (and greater) and smaller than 1199px would be 1198px (and smaller). When I use 770px and 1198px the module rejects the code, but when I use 769px and 1199px it accepts it.
I would like to know whether the instructions are perhaps misleadingly worded, or if the min-width in the media query condition is not inclusive (and so setting min-width to 769px not accept screen widths of 769px but rather screen widths of 770px and greater) and similar idea for the max-width (setting max-width to 1199px would not accept screen widths of 1199px, but rather 1198px or less)
Thanks in advance!
Here is a link to the module:
And here is the code:
CSS:
html {
box-sizing: border-box;
}
*, *::before, *::after {
box-sizing: inherit;
}
#piano {
background-color: #00471b;
width: 992px;
height: 290px;
margin: 80px auto;
padding: 90px 20px 0 20px;
position: relative;
border-radius: 10px;
}
.keys {
background-color: #040404;
width: 949px;
height: 180px;
padding-left: 2px;
overflow: hidden;
}
.key {
background-color: #ffffff;
position: relative;
width: 41px;
height: 175px;
margin: 2px;
float: left;
border-radius: 0 0 3px 3px;
}
.key.black–key::after {
background-color: #1d1e22;
content: “”;
position: absolute;
left: -18px;
width: 32px;
height: 100px;
border-radius: 0 0 3px 3px;
}
.logo {
width: 200px;
position: absolute;
top: 23px;
}
@media (max-width: 768px) {
#piano {
width: 358px;
}
.keys {
width: 318px;
}
.logo {
width: 150px;
}
}
@media (min-width: 770px) and (max-width: 1198px){
}
HTML:
Piano <div class="key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
<div class="key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
<div class="key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
<div class="key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
<div class="key black--key"></div>
</div>
</div>