Yesterday we spent time styling the keys. Today, we continue in styling.
- Gave the piano a logo.
- Let’s the styling of the logo begin.
- The img element needs its parent element to be positioned so we set the position of the #piano.
- To sharpen the edges of the piano we use the border-radius property.
- Same border-property is appropriated to the class key.
- Let’s not forget the black keys too. The border-property is added to the element .key.black--key::after.
- Time to make it responsive.
- #piano was added to the media query and given a new width.
- .keys was also added to the media query and gave it a new width.
- Of course, we didn’t forget the logo. The logo is also added before the .keys
Thanks for reading. I look forward to reading your comments.