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

jquery - Invalid Assignment Left-Hand Side -

javascript - Preserving URL fragment through CAS sign-on -

asp.net mvc - Implementing normal user/pass, Twitter & Facebook auth -