Skip to content

Instantly share code, notes, and snippets.

@SarahElson
Created May 20, 2024 17:11
Show Gist options
  • Save SarahElson/7bad6c287f21b4a4e22842170f06bed8 to your computer and use it in GitHub Desktop.
Save SarahElson/7bad6c287f21b4a4e22842170f06bed8 to your computer and use it in GitHub Desktop.
How to Use CSS Modules With React Applications
.navbar{
display: flex;
flex-direction: row;
height: 10vh;
padding:0 5rem;
justify-content: space-between;
align-items: center;
position: absolute;
top: 0;
left: 0;
width: 100%;
}
.logo{
font-size: 2rem;
font-family: 'Times New Roman', Times, serif;
}
.buttons{
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment