Viewport Bottom
by haba713
HTML
<div id="page">
<div id="lt" class="corner">
left top
</div>
<div id="rt" class="corner">
right top
</div>
<div id="lb" class="corner">
left bottom
</div>
<div id="rb" class="corner">
right bottom
</div>
</div>
<textarea id="txt" cols="40" placeholder="Focus here. Bottom corners should move above virtual keyboard.">
</textarea>
CSS
#page {
width: 640px;
height: 480px;
border: 1px solid red;
}
.corner {
position: absolute;
width: 150px;
text-align: center;
background-color: green;
color: white;
}
#lt {
left: 0px;
top: 0px;
}
#rt {
right: 0px;
top: 0px;
}
#lb {
left: 0px;
bottom: 0px;
}
#rb {
right: 0px;
bottom: 0px;
}
textarea {
display: block;
margin-left: auto;
margin-right: auto;
height: 400px;
}