Got a nice-ish looking text box

This commit is contained in:
jsrobson10 2019-04-13 14:40:31 +10:00
parent b7274a9097
commit 2d38e4744d
2 changed files with 15 additions and 4 deletions

View File

@ -157,8 +157,10 @@ function chat_switch_to(id)
// Set the HTML // Set the HTML
document.getElementById("chat-area").innerHTML = "\ document.getElementById("chat-area").innerHTML = "\
<div class='chat-content'></div>\ <div class='chat-content'></div>\
<textbox id='chat-content-send-textbox'></textbox>\ <div class='chat-content-send'>\
<textarea id='chat-content-send-textbox'></textarea>\
<button id='chat-content-send-button'>Send</button>\ <button id='chat-content-send-button'>Send</button>\
</div>\
"; ";
// Set the title // Set the title

View File

@ -16,7 +16,7 @@
top: 0; top: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
width: 100px; width: 120px;
background-color: #BBB; background-color: #BBB;
} }
@ -55,5 +55,14 @@
}*/ }*/
#chat-area { #chat-area {
padding-left: 100px; padding: 0 100px;
}
.chat-content-send {
position: fixed;
left: 340px;
right: 120px;
bottom: 0;
padding: 12px;
background-color: #CCD;
} }