The html code <div id="sim"></div>
and related CSS code below
#sim{
width:800px;
height:300px;
border:solid 1px #2e2e2e;
color:#2e2e2e;
padding:5px;
overflow:auto;
border:9px outset #0ADA0A;
margin-top:1em;
font-size:16pt;
}
its used for reading simulation. if i will enter more than 2000 words into the box, the box changes with scroll bar. when i press the button, it will reading with highlighted on text.
But, the border size is width:800px; height:300px;
, the words overflow into the box, the text has been hidden highlighting .
https://jsfiddle.net/8Lwm6gh1/40/
How can i see the reading with auto focus and auto scroll using JS?