- Create Account

please help, i no idea, about overflow

Forums > DragResize > please help, i no idea, about overflow
Author
Message

1) A_Man Group: Members
Posts: 2 Joined: 26 Mar 2008 Location: IP: 61.238.--.--
From twinhelix Demo

<div class="drsElement"
 style="left: 20px; top: 300px; width: 150px; height: 200px;
 background: #FDC; text-align: center;">
 <div class="drsMoveHandle">Div 1</div>
 Content
</div>

But i want scroll Content and hold hand title, like below code, but this not nice, over size of main DIV, i think you can get what i need, anyone can help me ? Thank You Very Much!!

<div class="drsElement"
 style="left: 50px; top: 150px; width: 250px; height: 120px;
 background: #CDF; text-align: center">
  <div class="drsMoveHandle">Div 0</div>
  <div style="height:100%; background-color:#FF0000; overflow:auto">Content <br />
    Content  <br />
    Content <br  />
    Content <br />
Content <br />
    Content  <br />
    Content <br  />
    Content <br />
Content <br />
    Content  <br />
  </div>
</div>

2) Angus Turnbull Group: Moderators
Posts: 4235 Joined: 7 Dec 2003 Location: New Zealand IP: 202.137.--.--
height:100% will make it too large as it'll be the height of the entire container element. Try perhaps with a margin-top or padding-top as well, perhaps ensure that both divs within are position: relative or absolute too.

- Angus.

3) A_Man Group: Members
Posts: 2 Joined: 26 Mar 2008 Location: IP: 61.238.--.--
oh yes, i got it, thank you !

Post a Reply:

You are not logged in, and will be posting anonymously as a guest. If you want to post using an account, please login at the top of this page.