Alex Rivera | Logout

Showing just some part of a div

Asked 2012-04-16T11:45:32.590
8

I want to have a div which is shown just top part of it (like 50px oh height) and other (bottom like 100px) part of the div should be shown by jquery.show() or something else. Is there anyone know how to do it ?

Here is an image to help explain

Edit
Report

1 Answer

1

I'd embed the content in a <div id="foo" style="height: 50px; overflow:hidden">. Then control the height of this element with JQuery:

$("#foo").css("height", whatever);
answered 2012-04-16T11:49:24.360

Your Answer