# Dynamically loaded, css-ed text and maxscroll?

**URL:** <https://forum.kirupa.com/t/dynamically-loaded-css-ed-text-and-maxscroll/252381>\
**Category:** Uncategorized\
**Created:** [February 19, 2008, 5:15pm UTC](https://forum.kirupa.com/t/dynamically-loaded-css-ed-text-and-maxscroll/252381 "2008-02-19T17:15:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thecheez](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@thecheez](https://forum.kirupa.com/u/thecheez)\
**Post date:** [February 19, 2008, 5:15pm UTC](https://forum.kirupa.com/t/dynamically-loaded-css-ed-text-and-maxscroll/252381/1 "2008-02-19T17:15:26Z")

</div>

Hey guys,

I’m developing a small site which dynamically loads .txt files into a main textbox which has a completely working custom scrollbar and buttons. The scrollbar would resize vertically based on the textbox.maxscroll value for the loaded text. The problem is that since I have adjusted my .txt files to work with CSS formatting, the scrollbar resize doesn’t work. The up/down buttons and scrollbar scrolling are fine but resizing doesn’t. I put a trace in the code for the maxscroll value but for the CSS formatted .txt files is always 1 no matter how much content is in the file. Anyone? I’m totally out of possible reasons. Any help greatfully appreciated.

Cheers, Mike
