Created
February 3, 2020 11:25
-
-
Save LockeBirdsey/ab6a1280d615b7bc9ab7da94071e89b7 to your computer and use it in GitHub Desktop.
Generate a text-only Title Screen for Twine using CSS
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
/* | |
This centers some text on the screen and then you can | |
display some stuff under it to start the story | |
Place in the main Twine stylesheet | |
Use with: | |
@@.titlecard; | |
Title of the story | |
@@ | |
*/ | |
.titlecard { | |
text-align: center; | |
margin: 0; | |
position: absolute; | |
top: 50%; | |
left: 50%; | |
margin-right: -50%; | |
transform: translate(-50%, -50%) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment