Okay so its a little complicated to explain, and it way easier to show and explain as there are moving parts, but basically... I will provide a screenshot and we can use elements from that for reference.
I want chat to start where I typed the number 1 and as new messages are generated I want them to go underneath the previous message so at all times the bottom most message is the most recent. This is a problem due to something i am calling "off screen margin" if the messages start at the top and go down from there, the off screen margin is below leading to any message after "<XpurplenerpleX> f" will be generated in the "off screen margin" in the HTML and CSS ther isnt a section to make changes to this unseen margin and the margin seems to extend something like 34 lines of text before the messages start to move upwards again.
I know this is a lot of disorganized information, but its the best way to explain whats happening. I have been able to change the direction the chat flows and where it starts, but what i havent been able to figure out is how to define the "borders" or "off screen margins" to be roughly 800 x 600 pixels
Here is my HTML
<!-- item will be appened to this layout -->
<div id="log" class="sl__chat__layout">
</div>
<!-- chat item -->
<script type="text/template" id="chatlist_item">
<div class="messagediv" data-from="{from}" data-id="{messageId}">
<span class="meta" style="color: rgb(203, 187, 162);">
<span class="username">{from}</span>
</span>
<span class="message">
{message}
</span>
</div>
</script>
And here is my CSS
* {
box-sizing: border-box;
}
html, body {
height: 100%;
overflow: hidden;
}
body {
text-shadow: 0 0 1px #000, 0 0 2px #000;