heron
heron

Reputation: 3661

How to stick div to the top of parent div

What I'm trying to do is,

http://jsfiddle.net/tt13/5CxPr/13/

Upvotes: 0

Views: 1694

Answers (3)

Pranav 웃
Pranav 웃

Reputation: 8477

Here is a fiddle of what you want to achieve. Use prependTo instead of appendTo and use position:absolute;top:0; for keeping it on the top

Upvotes: 4

Joseph
Joseph

Reputation: 119837

try this one instead

the code is too long to put here but here are key notes:

  • to append to the top, use .prependTo()
  • separate the new button and create a scrollable div below it

Upvotes: 1

uday
uday

Reputation: 8710

use prependTo() instead of appendTo() http://jsfiddle.net/uday99/5CxPr/20/

Upvotes: 1

Related Questions