Skip to content

Instantly share code, notes, and snippets.

@FujiHaruka
Created January 18, 2018 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FujiHaruka/618545a02bacf80d7e24acb9a6e166e2 to your computer and use it in GitHub Desktop.
Save FujiHaruka/618545a02bacf80d7e24acb9a6e166e2 to your computer and use it in GitHub Desktop.
Text Area for Smart Phone
<!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