Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Here is the desired output with exact functionality required in question. </p> <p>See fiddle for code : <a href="http://jsfiddle.net/NNfUb/2/" rel="nofollow">http://jsfiddle.net/NNfUb/2/</a></p> <p><strong>Demo:</strong> <a href="http://jsfiddle.net/NNfUb/2/embedded/result" rel="nofollow">http://jsfiddle.net/NNfUb/2/embedded/result</a></p> <p><strong>CSS:</strong></p> <pre><code>#content { position:relative; } #flyout_container { position:absolute; width:175px; top:0; left:0; background:#107042; display:none; } .sub-nav { padding:0; margin:0; display:none; } .sub-nav li { padding:5px 5px 5px 10px; display:block; color:#fff; font-size:14px; font-weight:bold; } </code></pre> <p><strong>jQuery:</strong></p> <pre><code>$(document).ready(function(){ var container = $("&lt;div id='flyout_container'&gt;"); container.appendTo($("#content")); var contentHeight = $("#content").height(); container.css({"height": (contentHeight + 10) + "px"}); $("a#show_sub_nav_1").mouseover(function(){ $("#sub_nav_1").appendTo(container).show(); container.toggle(); //container.show(); var fromTop = parseInt($(this).offset().top); $("#sub_nav_1").css({"margin-top": (fromTop - 205) + "px"}); }); $("#flyout_container").mouseleave(function(){ $("#flyout_container").hide(); }); }); </code></pre> <p>I have created the above fiddle by copying your source code from your webpage and work on that. I have created the full height functionality which is taking height upto the content height and showing the sub-links as per your desired design provided in screenshot. You need to tweek the css or code if you need any changes or enhancement. It will work on every viewport.</p> <p><strong>Note:</strong> If any issues please let me know. I hope this will solve your problem because i have used different approach.</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