Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code>&lt;style&gt; .dropdownstuff { width: 100%; height: 100%; z-index: 10; position:absolute; left: 0px; top: 0px; display:none; } .Showstuff { display:block !important; } &lt;/style&gt; &lt;script&gt; $("nav a").onClick(function() { n = $(this).attr('class'); $('.dropdownstuff.Showstuff').removeClass('Showstuff'); $('.dropdownstuff.'+n).addClass('Showstuff'); }); $("a.dropdownhider").onClick(function() { $('.dropdownstuff.Showstuff').removeClass('Showstuff'); }); &lt;/script&gt; </code></pre> <p>Then you have some divs below or inside your dropdowns:</p> <pre><code>&lt;a href="#" class="yellow"&gt;&lt;p class="yelinner"&gt;Home&lt;/p&gt;&lt;/a&gt; &lt;a href="#" class="pink"&gt;&lt;p class="pinkinner"&gt;About Me&lt;/p&gt;&lt;/a&gt; &lt;a href="#" class="purple"&gt;&lt;p class="purpinner"&gt;Portfolio&lt;/p&gt;&lt;/a&gt; &lt;a href="#" class="green"&gt;&lt;p class="greinner"&gt;Contact Me&lt;/p&gt;&lt;/a&gt; &lt;div class="dropdownstuff yellow"&gt;&lt;a href="#" class="dropdownhider"&gt;Hide this&lt;/a&gt;&lt;/div&gt; &lt;div class="dropdownstuff pink"&gt;&lt;a href="#" class="dropdownhider"&gt;Hide this&lt;/a&gt;&lt;/div&gt; &lt;div class="dropdownstuff purple"&gt;&lt;a href="#" class="dropdownhider"&gt;Hide this&lt;/a&gt;&lt;/div&gt; &lt;div class="dropdownstuff green"&gt;&lt;a href="#" class="dropdownhider"&gt;Hide this&lt;/a&gt;&lt;/div&gt; </code></pre> <p>Upon clicking on of your links, it uses it's class to determine which of the divs to unhide.</p> <p>Edit: Now the divs should fill the screen. When you click on the links, the div content will appear by having the class. Not sure exactly what you want with animation though.</p>
    singulars
    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