npsari Posted May 12, 2007 Share Posted May 12, 2007 Hi I have a Normal Div area: <div style="width:300px;height:300px;overflow:auto;border-width:0px;border-color:000000;border-style:solid;"> Text is here Text is here Text is here </div> I want when the page is loaded, the div area shows the bottom automatically i.e. The last Line I dont want users to take it down manually with the mouse everytime the page is loaded Do you know how this can be done? Quote Link to comment https://forums.phpfreaks.com/topic/51095-a-div-area-critical-situation/ Share on other sites More sharing options...
obsidian Posted May 12, 2007 Share Posted May 12, 2007 I dont want users to take it down manually with the mouse everytime the page is loaded I have no clue what you mean by this. Are you wanting a div to stay "stuck" to the bottom of the page as they scroll? I really don't understand what you're after. Quote Link to comment https://forums.phpfreaks.com/topic/51095-a-div-area-critical-situation/#findComment-251544 Share on other sites More sharing options...
npsari Posted May 12, 2007 Author Share Posted May 12, 2007 Hi, No, the div area contains text inside it So, i dont want the user to scroll down this little divx area I want whenver the page is uploaded, the divx is already at the buttom and showing the last text in it Quote Link to comment https://forums.phpfreaks.com/topic/51095-a-div-area-critical-situation/#findComment-251572 Share on other sites More sharing options...
freakstyle Posted May 17, 2007 Share Posted May 17, 2007 HI there, so if i understand it, you want to be able to have the bottom of scrollable div show when the div is rendered, vs the normal top line showing. if that is it, i think your best bet would to look into using Javascript to make the scroll move for you. I haven't ever tried it myself, but i'm thinking something along the lines of finding the bottom z-offset, and moving the scroll to that. if you're just showing text in there, why don't you just put that important text at the top? seems like the work involved wouldn't benefit the user too much. but theres no info into that so do your thing, and try javascript for it. good luck Quote Link to comment https://forums.phpfreaks.com/topic/51095-a-div-area-critical-situation/#findComment-255904 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.