Created
January 18, 2018 14:16
-
-
Save FujiHaruka/618545a02bacf80d7e24acb9a6e166e2 to your computer and use it in GitHub Desktop.
Text Area for Smart Phone
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width,initial-scale=1"> | |
<title>Smartphone Textarea</title> | |
</head> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; | |
height: 100%; | |
} | |
.title { | |
width: 100%; | |
padding-top: 8px; | |
padding-bottom: 8px; | |
padding-left: 1em; | |
} | |
#textarea { | |
width: 100%; | |
height: 100%; | |
padding: 8px; | |
border: none; | |
outline: none; | |
font-size: 18px; | |
color: #444; | |
font-weight: 100; | |
background: rgba(0,0,0,0); | |
-webkit-appearance: none; | |
-webkit-tap-highlight-color: rgba(0,0,0,0); | |
} | |
</style> | |
<body> | |
<div class="title">Text Area</div> | |
<textarea | |
id="textarea" | |
autofocus | |
placeholder="Tap here and write something." | |
></textarea> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment