Last active
April 24, 2019 07:44
-
-
Save iamnnort/92f6b900a9b1e8765c91bc55f601eced to your computer and use it in GitHub Desktop.
Flex-box tooltips
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
.container { | |
display: flex; | |
} | |
.box { | |
flex: 1; | |
display: flex; | |
justify-content: center; | |
} | |
.box1 > span { margin-right: auto; } | |
.box3 > span { margin-left: auto; } | |
<div class="container"> | |
<div class="box box1"><span>1 short</span></div> | |
<div class="box box2"><span>2 centered</span></div> | |
<div class="box box3"><span>3 loooooooooooooooong</span></div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment