Note that there are some explanatory texts on larger screens.

plurals
  1. PODIV Layers interfering with links
    primarykey
    data
    text
    <p>I have some code as follows where I think my layering is causing a rendered link to be unclickable. Some of this example I've converted to styles from external CSS classes for ease of writing this up as a small use case. This is currently being testing on modern browsers (latest stable FF and Chrome).</p> <pre><code>&lt;body&gt; &lt;!-- whole container needs to be at z-index of -1 --&gt; &lt;div id="container"&gt; &lt;div class="corner" id="backgroundTopLeft"&gt;&lt;/div&gt; &lt;div class="corner" id="backgroundTopRight"&gt;&lt;/div&gt; &lt;div class="corner" id="backgroundBottomLeft"&gt;&lt;/div&gt; &lt;div class="corner" id="backgroundBottomRight"&gt;&lt;/div&gt; &lt;!-- whole container needs to be at z-index of 1 --&gt; &lt;div id="container2"&gt; &lt;div id="headerSection"&gt;&lt;img src="images/jClarity_logo.png" alt="logo" /&gt;&lt;/div&gt; &lt;div id="navigationSection"&gt; &lt;a class="selected" href="#"&gt;Introduction&lt;/a&gt;&lt;span class="menuDivider"&gt;|&lt;/span&gt;&lt;a href="about.html"&gt;About&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; </code></pre> <p>And the CSS</p> <pre><code>@charset "utf-8"; /* Default margin, padding and font-family */ * { font-family: Arial; margin: 0px; padding: 0px; } /* All images should have no borders by default */ img { border: none; } /* Global styling for links, uses black as the color */ a { color: #000000; text-decoration: none; } a.selected { font-weight: bold; } a:hover { color:#FF00FF; } #container { position: relative; z-index: -1; height: 100%; } .corner { position: absolute; height: 100px; width: 100px; background-color: #172944; z-index: -1; } #backgroundTopLeft { top: 0px; left: 0px; } #backgroundTopRight { top: 0px; right: 0px; } #backgroundBottomLeft { bottom: 0px; left: 0px; } #backgroundBottomRight { bottom: 0px; right: 0px; } #container2 { position: relative; width: 100%; height: 100%; z-index: 1; opacity: 0.8; filter:alpha(opacity=80); background-image:url('../images/groovepaper.png'); } /* The headerSection div, designed to fit in a centered logo */ #headerSection { margin-left: auto; margin-right: auto; padding-bottom: 70px; padding-top: 54px; height: 70px; width: 250px; } /* The navigationSection div, designed to fit in the menu */ #navigationSection { padding-bottom: 15px; margin-left: auto; margin-right: auto; width: 600px; text-align: right; } .menuDivider { color: #666666; padding-left: 5px; padding-right: 5px; } </code></pre> <p>It all looks fine (lots of other purely color/font-size type styling is applied), but foobar.html is not clickable.</p> <p>I'm pretty sure I've done something wrong with the layering, but I thought the use of z-indices would sort me out..</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.
    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