Skip to content

Instantly share code, notes, and snippets.

@kamlekar
Created December 7, 2012 10:16
Show Gist options
  • Save kamlekar/4232313 to your computer and use it in GitHub Desktop.
Save kamlekar/4232313 to your computer and use it in GitHub Desktop.
Chat Application (work in progress) style.css
#chat-outline
{
background-color: gray;
width: 16%;
height: 50%;
min-height: 300px;
min-width: 200px;
max-height: 450px;
max-width: 300px;
position: fixed;
bottom: 10px;
right: 10px;
padding: 2px;
}
#chat-main
{
width: 100%;
height: 100%;
background-color: silver;
overflow: hidden;
}
#chat-inner
{
top: 4px;
bottom: 4px;
right: 4px;
left: 4px;
background-color: cornflowerblue;
position: absolute;
}
#chat-title
{
height: 10%;
width: 100%;
background-color: #4B6C9E;
}
#chat-title-name
{
margin-left: 5px; /*margin-top:2px;*/
color: #E8E8FA;
font-family: Verdana;
font-size: medium;
padding-top: 5px;
}
#chat-display
{
height: 70%;
width: 100%;
background-color: #EEEEEE;
position: relative;
}
#chat-display-main, #lblShowMessage, #messages
{
top: 1px;
bottom: 1px;
right: 1px;
left: 1px;
border: 2px solid #E8E8FA;
position: absolute;
}
#chat-display-main b
{
color: cornflowerblue;
}
#messages
{
word-wrap: break-word;
overflow-y: auto;
}
#chat-message-outline
{
height: 20%;
width: 100%;
background-color: #D1D1D1;
position: relative;
}
#chat-message
{
padding: 0;
margin: 0;
top: 2px;
bottom: 2px;
right: 2px;
left: 2px;
background-color: white;
position: absolute;
}
#txtmsg
{
margin: 0;
padding: 0;
border: none;
width: 100%;
height: 100%;
resize: none; /* CSS3 property */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment