As a newcomer to JS, I encountered my first simple problem that I can't seem to solve.
Currently working on a basic website using an online editor, I decided to add a shoutbox from shoutbox.com
In order to use the shoutbox, I embedded it in an HTML box, which worked fine. However, I ran into an issue where a horizontal scrollbar appeared within the HTML box. No matter what I tried with HTML body codes, the scrollbar persisted. Increasing the size of the HTML box only stretched the shoutbox without removing the scrollbar.
The shoutbox's width is set to 100% and the height to 360px. The shoutbox.com FAQ provides instructions to adjust both properties, but it's not clear how to apply them:
<script src="https://www.shoutbox.com/chat/chat.js.php"></script><script> var chat = new Chat(112308); </script>
The FAQ advises:
To change the width: embed the chat into a div element with the desired width.
To change the height: override the .shoutBoxContainer CSS.
An example is provided as well:
var chat = new Chat(5, "John"); <style> .shoutBoxContainer {height:450px;} </style>
I wanted to try setting the shoutbox to a width of 90% to see if this resolves the issue.
My question: How can I achieve this?