JSFiddle - React, Tailwind, and code Playground
by elvista
HTML
<div id="sidebar">
<div class="widget">
Variable content
</div>
<div class="widget" id="chatbar">
<span class="username">John Doe</span>
<div id="chathistory">
<div class="msgs">
This is a sample chat msg. Lorem Ipsum
</div>
<div class="msgs">
This is a sample chat msg. Dolor Sit
</div>
<div class="msgs">
This is a sample chat msg. Amet Confus
</div>
<div class="msgs">
This is a sample chat msg. Lorem Ipsum
</div>
<div class="msgs">
This is a sample chat msg. Dolor Sit
</div>
<div class="msgs">
This is a sample chat msg. Amet Confus
</div>
<div class="msgs">
This is a sample chat msg. Lorem Ipsum
</div>
<div class="msgs">
This is a sample chat msg. Dolor Sit
</div>
<div class="msgs">
This is a sample chat msg. Amet Confus
</div>
<div class="msgs">
This is a sample chat msg. Lorem Ipsum
</div>
<div class="msgs">
This is a sample chat msg. Dolor Sit
</div>
<div class="msgs">
This is a sample chat msg. Amet Confus
</div> <div class="msgs">
This is a sample chat msg. Lorem Ipsum
</div>
<div class="msgs">
This is a sample chat msg. Dolor Sit
</div>
<div class="msgs">
This is a sample chat msg. Amet Confus
</div>
<div class="msgs">
This is a sample chat msg. Lorem Ipsum
</div>
<div class="msgs">
This is a sample chat msg. Dolor Sit
</div>
<div...
CSS
#sidebar, #chathistory, textarea {width:300px;}
#sidebar {
position:fixed; display:block;
right:0;top:0; bottom:0}
.widget {background: #eee; margin: 10px 0}
#chathistory {
overflow-y: auto;
bottom: 60px;
top: 70px;
position: absolute;
}
textarea {
bottom:0; right:0;
height:50px;
position:absolute; }