anderrospatters
New Member
I have a div that autohides to the left of the screen and contains miller columns. the width of the contents of the div is unknown. if I hard code a width using .width(500) it works fine but now I'm trying to get it to auto-fit to the contents on mouse over, then shrink back down on mouseleave.this is the code I have at the moment, the problem is, nothing happens when I mouseover. the idea was to remove the css attribute of width, reverting back to the default value\[code\]$(".leftnavdiv").live({ //code for autohide mouseenter: function () { $(this).css('width',''); //$("body").css('padding-left','510px'); }, mouseleave: function () { $(this).css('width','10px'); //$("body").css('padding-left','20px'); }});\[/code\]