Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do i make the whole tile(.ie the tab in the nav menu) part of the hyperlink
    primarykey
    data
    text
    <p>I have made this nav menu based on the Windows 8 concept. i now want that the whole tile becomes part of the hyperlink. So then if we click anywhere on the tile it will take us to the linked site. Code is here on JS Fiddle: <a href="http://jsfiddle.net/2Lkdy/" rel="nofollow">http://jsfiddle.net/2Lkdy/</a></p> <pre><code> // html &lt;div class="div1"&gt; &lt;ul&gt; &lt;li&gt;&lt;a href="ITEM1.html"&gt;Item 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a href="#"&gt;Item 2&lt;/a&gt;&lt;/li&gt; &lt;a href="#"&gt;&lt;li&gt;Item 3&lt;/a&gt;&lt;/li&gt; &lt;a href="#"&gt;&lt;li&gt;Item 4&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; // css .div1 {list-style: none; margin-left:14%; margin-right:auto; margin-bottom:auto; margin-top:auto; text-decoration:none; display:block;} .div1 li { display: inline; float: left; padding: 3em; color: #000; font-family: "Open Sans","Century Gothic","Trebuchet MS","Ubuntu","sans-serif"; font-weight: 400; font-size: 18pt; -webkit-transition: all 0.5s; width:85px; } .div1 ul li:hover{ padding: 80px; margin-top: -20px; -webkit-transition: all 0.5s; } .div1 ul li a { color: #000; text-decoration: none; } .div1:hover ul:hover li{ opacity:0.5; } .div1:hover ul:hover li:hover{ opacity:10; } .div1 ul li:nth-of-type(1){ background:#CB4F1E; } .div1 ul li:nth-of-type(2){ background:#D3711B; } .div1 ul li:nth-of-type(3){ background:#94B339; } .div1 ul li:nth-of-type(4){ background:#68B43F; } @media screen and (max-width: 480px) { .div1 { position: relative ; min-height: 70px; } .div1 ul { width: 180px; padding: 5px; position: absolute; top: 0; overflow: hidden; left: 0; border: solid 1px #aaa; background: url("threelines_48_3.png") no-repeat 10px 11px; background-position:left 10px; box-shadow: 0 1px 2px rgba(0,0,0,.3); opacity:1; min-height: 40px; } .div1 li { display: none; /* hide all &lt;li&gt; items */ margin: 0; opacity: 1; } .div1 ul:hover { box-shadow: 0 1px 2px rgba(0,0,0,0); background:transparent; border: 0px solid #000; } .div1 ul:hover li { display: block; margin: 0 0 5px; opacity: 1; height: 20px; padding:4px; text-align: center; } .div1 ul li{ width:180px; padding:4px; margin-top:2px; opacity:1; height:20px; } .div1 ul li:hover{ opacity: 1; height:20px; padding:4px; text-align: center; } .div1 ul li:nth-of-type(1){ background:#CB4F1E; } .div1 ul li:nth-of-type(2){ background:#D3711B; } .div1 ul li:nth-of-type(3){ background:#94B339; } .div1 ul li:nth-of-type(4){ background:#68B43F; } } </code></pre> <p>formatted.</p>
    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.
 

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