html - Scroller for message content and then fixed text field at the bottom -
hello i'm wondering how able achieve chatbox fixed header & reply textbox. far have.
.headerchat{ background-color: #336699; width: 100%; padding-top: 3px; padding-bottom: 3px; font-weight: bold; color: #fff; display: block; } .buddies { background-color: #fff; border: 1px solid #ccc; bottom: 30px; display: none; font-size: 12px; left: 205px; position: fixed; width: 235px; height: 200px; margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; } .messages { background-color: #fff; border: 1px solid #ccc; bottom: 30px ; font-size: 12px; display: none; left: 205px; position: fixed; width: 235px; height: 400px; margin: 0; padding: 0; overflow: scroll; z-index: 100; } .gray{ color:#aaa; } .chat{ word-wrap:break-word; width: 235px; } .username{ text-decoration: none; color: #336699; text-transform: capitalize; } .username:hover{ text-decoration: none; color: #6699aa; } .conversation{ width:235px; padding: 0; border-bottom: 1px dotted #999; float: left; } /*.conversationpicture{ float:left; }*/ .closecontainer{ float: right; } .close, .close:hover{ text-decoration: none; font-weight: bolder; color: #fff; } .buddycontainer { float:left; } .formchattext { display: block; font-size:12px; border:1px solid #ccc; width:234px; padding: 0; margin: 0; height: 30px; position: fixed; bottom: 30px; }
what want achieve have fixed header, scrollable content , fixed reply textfield.
i tried overflow-x: scroll; both .buddies & .messages still no luck kind still newbie sorry. if have quick @ it. thanks.
i modified code, is
sample code:
.antiscroll-inner { height: 300px; overflow-y:scroll; }
demo:
http://jsfiddle.net/enydt/13/
in future coding try avoid write inline style html elements
Comments
Post a Comment