Jump to content

A DIV area critical situation


npsari

Recommended Posts

 

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?

Link to comment
https://forums.phpfreaks.com/topic/51095-a-div-area-critical-situation/
Share on other sites

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.

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

 

 

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.