Jump to content

fix scroll bar to the bottum


westman

Recommended Posts

hi all,i have a <div>and in it, it looks like this...

<div id="text_output" align="left" style="background-color:#F4F4F4; font-size:12px; height:150px; overflow:auto; padding:5px; border-bottom:#666 1px solid;">

how do i set the scroll bar to the bottum?

Link to comment
Share on other sites

AS with setting the height to show a scrollbar when the content exceeds the height of the container, the setting of width is required, so when the content exceeds container width, surprise, surprise the scrollbar appears. overflow-x: targets bottom scrollbar (width) overflow-y: targets right scrollbar (height)

Link to comment
Share on other sites

you are talking about right scrollbar right!, with overflow: auto; the scrollbar will only appear if content greater than fixed height, overflow:scroll; the scrollbar appears, but is greyed out until its content is greater than fixed height. IF you wish to set it so the content at bottom is shown as the content increases. css can't do that, only javascript or jquery maybe able to achieve that.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...