westman Posted March 19, 2012 Share Posted March 19, 2012 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 More sharing options...
dsonesuk Posted March 19, 2012 Share Posted March 19, 2012 overflow-x:scroll; i think is what you mean. Link to comment Share on other sites More sharing options...
westman Posted March 19, 2012 Author Share Posted March 19, 2012 overflow-x:scroll; is not working for me.a normal scroll bar starts at the top of a page or div,but am trying to set it to the bottum. Link to comment Share on other sites More sharing options...
dsonesuk Posted March 19, 2012 Share Posted March 19, 2012 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 More sharing options...
westman Posted March 19, 2012 Author Share Posted March 19, 2012 ok so how do i target the height scroll bar to be set at the bottum? like when you open a new website the scroller is at the top showing the top of the page, am trying to show the bottum of the page (div) Link to comment Share on other sites More sharing options...
dsonesuk Posted March 20, 2012 Share Posted March 20, 2012 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 More sharing options...
westman Posted March 20, 2012 Author Share Posted March 20, 2012 hmmm ok thank you,yer i was talking about the right scrollbar found on a pc or on the net, moving the starting position to the bottum, it defolts to the top. Link to comment Share on other sites More sharing options...
dsonesuk Posted March 20, 2012 Share Posted March 20, 2012 already posted js code fix Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.