Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Piano-HTML-CSS

Practice of responsive web design by building a piano

Key learning came at the end when configuring @media queries.

@media (max-width: 768px) {
    #piano {
        width: 358px;
    }
    .keys {
        width: 318px;
    }
    .logo {
        width: 150px;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    #piano {
        width: 675px;
    }
    .keys {
        width: 633px;
    }
}

Here I am setting up the rules for the width of the diffent div elements. TIL that you can use logical operator like and to define specific range of widths.

About

Practice of responsive web design by building a piano

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages