Note that there are some explanatory texts on larger screens.

plurals
  1. POCSS Layout: 2 column fixed-fluid (again)
    text
    copied!<p>I'm trying to setup a 2-column layout where the left area is fixed and the main content is fluid. I've seen several answers on here, which tend to work. However, there is some odd behavior when I use a "jsTree" in my "left" area and jQuery UI tabs in the main/content area.</p> <p><strong>html</strong></p> <pre><code>&lt;div id="main"&gt; &lt;div id="left"&gt; &lt;div id="tree"&gt; &lt;/div&gt; &lt;/div&gt; &lt;div id="right"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="#a"&gt;A&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#b"&gt;B&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#c"&gt;C&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;div id="a"&gt; &lt;h3&gt;A is here&lt;/h3&gt; &lt;/div&gt; &lt;div id="b"&gt; &lt;h3&gt;B is here&lt;/h3&gt; &lt;/div&gt; &lt;div id="c"&gt; &lt;h3&gt;C is here&lt;/h3&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p><strong>css</strong></p> <pre><code>#left { float: left; width: 200px; overflow: auto; } #right { margin: 0 0 0 200px; } </code></pre> <p><strong>javascript</strong></p> <pre><code>$(document).ready(function() { $('#right').tabs(); $('#tree').jstree({ "plugins" : [ "json_data", "themes"], "json_data" : { "data" : [ { "data" : "A node", "children" : [ "Child 1", "Child 2" ] }, { "attr" : { "id" : "li.node.id" }, "data" : { "title" : "Long format demo", "attr" : { "href" : "#" } } } ] }, }); }); </code></pre> <p>The problem I'm having is, as I expand the tree (on the left) the tabs on the right start getting funky. The area containing the tabs (the element I believe) grows vertically. </p> <p>Take a look here for this example: <a href="http://jsfiddle.net/codecraig/gBUw2/" rel="nofollow">http://jsfiddle.net/codecraig/gBUw2/</a></p>
 

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