Note that there are some explanatory texts on larger screens.

plurals
  1. POSet Content's Width to 100% when Sidebar is Hidden?
    primarykey
    data
    text
    <p>Beforehand, pardon me for my poor English.</p> <p>Ok so here's a live site I have: <a href="http://bleachindonesia.com/forum/" rel="nofollow">http://bleachindonesia.com/forum/</a></p> <p>If you notice the little X on the left, it is a toggle to show/hide sidebar. The jQuery is working fine. The only problem is that the content's width won't get wider (to 100%) / won't fill the empty space when I hide the sidebar (the sidebar left an empty space when hidden).</p> <p>I need the content's width to be 100% when the sidebar is hidden, but retaining its smooth animation. Perhaps like the one in the <a href="https://www.vbulletin.com/forum/" rel="nofollow" title="vBulletin forum">vBulletin forum</a>.</p> <p>Here is the jQuery btw:</p> <pre><code>//&lt;!-- if($.cookie("sidebarpost") == undefined) { $.cookie("sidebarpost", "expanded"); } var state = $.cookie("sidebarpost"); if(state == "collapsed") { $('.lside').hide(); $('.lclose').hide(); $('.lopen').show(); } if($.cookie("sidebarpost") == "expanded") { $("#left-side").toggle(function(){ $.cookie("sidebarpost", "collapsed"); $('.lopen,.lclose').toggle(); $('.lside').fadeOut().delay(1000); $('#content').hide("slide", { direction: "left" }, 2000); },function(){ $.cookie("sidebarpost", "expanded"); $('.lopen,.lclose').toggle(); $('#content').show("slide", { direction: "right" }, 2000).delay(1000); $('.lside').fadeIn(); }); } else { $("#left-side").toggle(function(){ $.cookie("sidebarpost", "expanded"); $('.lopen,.lclose').toggle(); $('#content').show("slide", { direction: "right" }, 2000).delay(1000); $('.lside').fadeIn(); },function(){ $.cookie("sidebarpost", "collapsed"); $('.lopen,.lclose').toggle(); $('.lside').fadeOut().delay(1000); $('#content').hide("slide", { direction: "left" }, 2000); }); } //--&gt; </code></pre> <p>I know it's kind of bloated, perhaps if there is a way to minimize it, would be very helpful. Can anybody help?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload