A Pen by Trần Đỗ Duy Quang on CodePen.
Created
February 5, 2020 22:52
-
-
Save melbahja/0c6e42064c18ae5e5569566fcd219276 to your computer and use it in GitHub Desktop.
gjLpLq
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="hub"> | |
<span contenteditable="true">Anony</span> | |
<span contenteditable="true">Viet</span> | |
</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
html { | |
height: 100%; | |
} | |
body { | |
background: #000000; | |
color: #ffffff; | |
margin: 0; | |
min-height: 100%; | |
height: 100%; | |
position: relative; | |
} | |
.hub { | |
display: block; | |
font-family: sans-serif; | |
font-weight: bold; | |
font-size: 5vw; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
transform: translate(-50%, -50%); | |
} | |
.hub span:nth-child(2) { | |
background: #FF9900; | |
color: #000000; | |
border-radius: 1vw; | |
padding: 0 1vw 1vw 1vw; | |
display: inline-block; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment