Last active
October 17, 2020 06:40
-
-
Save georgenaranjo96/93e7982e7982a8e5bd20feac320be3af to your computer and use it in GitHub Desktop.
02. Deconstructed Pancake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="parent"> | |
<div class="child"> | |
<textarea> </textarea> | |
</div> | |
<div class="child"> | |
<textarea></textarea> | |
</div> | |
<div class="child"> | |
<textarea></textarea> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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