Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The third 'li' of the top menu has been extended in width so that when you are moving your cursor over to the 'extralinks' menu, the latter doesn't slide out of view.</p> <p>Pure CSS Solution: <a href="http://jsfiddle.net/bJ7Zm/4/" rel="nofollow">Jsfiddle Link</a></p> <p><strong>CSS</strong>:</p> <pre><code>* { padding:0; margin:0; } .links { width:100%; } .links &gt; menu { left: 0%; text-align:center; position: fixed; z-index: 4; } .links menu li { whitespace: nowrap; display: inline-block; margin-right: 30px; position: relative; padding: 0; height: 40px; top: 24px; z-index: 4; float:left; } .links a, a:visited { font-family: RobotoLight; text-decoration: none; text-transformation: none; weight: normal; font-size: 18px; color: #000000; z-index: 4; float:left; height: 100%; } .links a:hover { font-family: RobotoLight; text-decoration: none; text-transformation: none; weight: normal; font-size: 18px; color: #33b5e5; z-index: 4; } .l3 .extralinks { white-space: nowrap; position: fixed; top: 0px; left:100%; padding: 0 0 0 10px; text-align:center; height: 40px; width: 300px; z-index: 4; display: inline-block; -webkit-transition: all .2s ease 0s; -moz-transition: all .2s ease 0s; -o-transition: all .2s ease 0s; -ms-transition: all .2s ease 0s; transition: all .2s ease 0s; z-index: 4; } .l3:hover .extralinks { left: 50%; } .l3:hover .extralinks li { } .links li:nth-child(3) { width:200px; margin-right:0px; } .links li:nth-child(3):hover &gt; a { font-family: RobotoLight; text-decoration: none; text-transformation: none; weight: normal; font-size: 18px; color: #33b5e5; z-index: 4; border-bottom: 3px solid #33b5e5; } .links li:hover &gt; a, li:active &gt; a { border-bottom: 3px solid #33b5e5; } </code></pre> <p><strong>HTML</strong>:</p> <pre><code>&lt;div class="links"&gt; &lt;menu&gt; &lt;li&gt; &lt;a href="#"&gt;Link 1&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Link 2&lt;/a&gt; &lt;/li&gt; &lt;li class="l3"&gt; &lt;a href="#"&gt;Link 3&lt;/a&gt; &lt;menu class="extralinks"&gt; &lt;li&gt; &lt;a href="#"&gt;Link 4&lt;/a&gt; &lt;/li&gt; &lt;li&gt; &lt;a href="#"&gt;Link 5&lt;/a&gt; &lt;/li&gt; &lt;/menu&gt; &lt;/li&gt; &lt;/menu&gt; &lt;/div&gt; </code></pre>
    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.
    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