i want to have a little "preview" of the content in the div, so i made it so small that only only the first line is shown. now i want to animate it that when you click the title, the div will have the height of 100%, but when i use animate(height:"100%") there is no nice sliding.
<a href="javascript:void(0);" class="show_it">title:</a> <div> content<br> content_hidden </div> <script> $('.show_it').click(function() { $(this).next("div").animate({ height: 'auto' }, 1000, function() { }); }); </script> <style> div{ height:20px; overflow:hidden; } </style>