The right way to implement pressed button effect in CSS
I am creating piano layout using CSS. I really like this "button-pressed" effect, but it shifts elements around it. How does one avoid it? <main> <div id="o-2" class="octave"> <button id="C2" class="C key"></button> <button id="C2-sharp" class="C-sharp key-black"></button> <button id="D2" class="D key"></button>…