Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scrolling text to end of screen...

Status
Not open for further replies.

Trentham

Technical User
Nov 9, 2002
67
GB
I have a need to have a couple of scrolling text areas on a page.

I know I can do this with CSS and a style such as

.scroller {
overflow: auto;
height: 350px;
width: auto;
}

and then apply it to a <div> tag, however I want the text box to extend to the bottom of the page and not be of a fixed size. Setting &quot;height: auto&quot; does not seem to achieve this.

I could move to using frames which will provide their own scrolling but I'd rather not do this if I can avoid it.

Any ideas??
 
Trentham,

Would setting the height to 100%, and then having a top padding or margin to allow the box to start at any location down the page work?

Dan
 
I've not tried that approach (yet) but having a top margin/padding would mean that it'd give me white space (unless I do some other positioning of elements).

Still, I'll have a play and see if I can get anywhere with your idea! TVM.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top