jquery - how to do show hide content div with crossbrowser? -


i doing content div show hide using animate present it's fixed width working want without width it's should cross browser when shrinking down have work elastic wise when div show mode.

any suggestions or modifications in code.

jsfiddle http://jsfiddle.net/sureshsummy/xukrf/5/

here solution fixed width problem:

$("#content").animate({     width: $('body').width() -100 }, {     queue: false,     duration: 10 }).toggle(); 

edit: animate hide, put animation function again in toggle:

$("#content").animate({     width: $('body').width() -100 }, {     queue: false,     duration: 1000 }).toggle({     width: 100 }, {     queue: false,     duration: 1000 }); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -