JSFiddle - React, Tailwind, and code Playground
by Virgil Disgr4ce
HTML
<div class="fc fcColumn">
<div id="header" class="fc fcRow">
icon
Title
icon
</div>
<div id="chatLog">
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg<br/>
msg
</div>
<div id="chatFooter" class="fc">
<form class="logEntry">
<input class="logInput" type="text" placeholder="Your message..."/>
<button type="submit">Send</button>
</form>
</div>
</div>
CSS
.fc {
display: -webkit-flex;
display: flex;
}
.fcRow {
-webkit-flex-direction: row;
flex-direction: row;
-webkit-justify-content: space-between;
justify-content: space-between;
-webkit-align-items: center;
align-items: center;
}
.fcColumn {
-webkit-flex-direction: column;
flex-direction: column;
height: 100%;
}
html, body {
margin:0px;
height: 100%;
}
#header {
background-color: #eee;
padding: 10px 10px;
}
.clickable {
cursor: pointer;
}
#chatLog {
-webkit-flex: 1 1 auto;
flex: 1 1 auto;
overflow-y: auto;
min-height: 0px;
padding:10px;
}
#chatFooter {
height: 40px;
padding:10px;
background-color: #eee;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
flex-direction:row;
}
.logInput {
padding: 10px 10px;
}