Skip to content

Instantly share code, notes, and snippets.

@knguye1999
Created January 11, 2021 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knguye1999/9c14488ba3b5f55fc99deeb78bf4e1e2 to your computer and use it in GitHub Desktop.
Save knguye1999/9c14488ba3b5f55fc99deeb78bf4e1e2 to your computer and use it in GitHub Desktop.
body{
font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,sans-serif;
height:100%;
display:flex;
flex-direction:column;
align-items:center;
background:linear-gradient(145deg, rgb(0, 100, 109) 42%, rgb(65, 28, 206)) 0% 0% / cover;
color:white;
}
.header{
background:grey;
width: 100%;
min-height: 60px;
display: flex;
padding: 0 10px;
align-items: center;
justify-content: space-between;
}
.main{
display: flex;
flex-wrap: wrap;
}
.orangebox{
background: orange;
min-width: 180px;
min-height: 180px;
align-items: center;
justify-content: center;
margin: 15px;
display: flex;
}
.whitebox{
min-height: 40px;
min-width: 40px;
background: white;
}
<header class="header">
<div class="whitebox">
</div>
<div class="whitebox">
</div>
</header>
<main class="main">
<section class="orangebox">
<div class="whitebox">
</div>
</section>
</main>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment