Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>After fiddling about with my fiddle for a (long while), I think I finally got it working satisfactorily. <a href="http://jsfiddle.net/wTqE8/11/" rel="nofollow">The fiddle is available here</a></p> <p>The html:</p> <pre><code>&lt;div id="RightMenu"&gt; &lt;ul id="Tabs"&gt; &lt;li&gt;&lt;span&gt;Menu 1&lt;/span&gt; &lt;/li&gt; &lt;li&gt;&lt;span&gt;My really long menu&lt;/span&gt; &lt;/li&gt; &lt;li&gt;&lt;span&gt;Menu 3&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;ul id="Menus"&gt; &lt;li&gt; &lt;div&gt;Menu 1 content&lt;/div&gt; &lt;/li&gt; &lt;li&gt;Menu 2 content&lt;/li&gt; &lt;li&gt;Menu 3 content&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;div id="Content"&gt;Content&lt;/div&gt; </code></pre> <p>The css:</p> <pre><code>#Content { width: 100%; } #RightMenu { position: absolute; height: 100%; right: 0; z-index: 10; } #RightMenu #Tabs, #RightMenu #Menus { margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; list-style: none; } #RightMenu #Tabs { position: absolute; white-space: nowrap; top: 0; right: 100%; text-align: right; -webkit-transform-origin: 100% 100%; -webkit-transform: rotate(-90deg); transform-origin: 100% 100%; transform: rotate(-90deg); } #RightMenu #Tabs &gt; li { display: inline-block; cursor: pointer; border: 1px solid black; border-bottom: none; } #RightMenu #Menus { width: 200px; } #RightMenu #Menus li { white-space: nowrap; } </code></pre> <p>additional js:</p> <pre><code>$(document).ready(function () { $('#RightMenu #Tabs &gt; li').click(function () { $('#RightMenu #Menus').animate({ width: 'toggle' }, 1000); }); }); </code></pre> <p>This should give a sliding right sidebar with vertical tabs.</p> <p>Thanks to Mark Ryan Sallee for his fiddle which put me on the right track to get this working.</p> <p>UPDATE:</p> <p>I have updated this fiddle so that it will work in all major browsers now.</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