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
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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.