Skip to content

Instantly share code, notes, and snippets.

@georgenaranjo96
Last active October 17, 2020 06:40
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 georgenaranjo96/93e7982e7982a8e5bd20feac320be3af to your computer and use it in GitHub Desktop.
Save georgenaranjo96/93e7982e7982a8e5bd20feac320be3af to your computer and use it in GitHub Desktop.
02. Deconstructed Pancake
data:text/html,
<div class="parent" style=" display: flex; flex-wrap: wrap;">
<div class="child" style="flex: 1 1; height: 100vh; ">
<textarea style="
width: 90%;
height: 75%;
font-size: 2rem;
align-text: center;
border: 4px;
border-radius: 20px;
margin: 5px ;
padding: 5px;
background: #75E6DA;">
</textarea>
</div>
<div class="child" style="flex: 1 1; height: 100vh; ">
<textarea style="
width: 90%;
height: 75%;
font-size: 2rem;
align-text: center;
border: 4px;
border-radius: 20px;
margin: 5px ;
padding: 5px;
background: #75E6DA;">
</textarea>
</div>
<div class="child" style="flex: 1 1; height: 100vh; ">
<textarea style="
width: 90%;
height: 75%;
font-size: 2rem;
align-text: center;
border: 4px;
border-radius: 20px;
margin: 5px ;
padding: 5px;
background: #75E6DA;">
</textarea>
</div>
</div>
<div class="parent">
<div class="child">
<textarea> </textarea>
</div>
<div class="child">
<textarea></textarea>
</div>
<div class="child">
<textarea></textarea>
</div>
</div>
.parent {
display: flex;
flex-wrap: wrap;
}
.child {
// flex: none | [ <'flex-grow'> <'flex-shrink'>? || <'flex-basis'> ]
// If we don't want the items to stretch:
// flex: 0 1 300px;
// If we do want the items to stretch:
flex: 1 1;
// etc.
height: 100vh;
}
textarea {
width: 90%;
height: 75%;
font-size: 2rem;
align-text: center;
border: 4px;
border-radius: 20px;
margin: 5px ;
padding: 5px;
background: #75E6DA;
}
body {
font-family: system-ui, serif;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment