Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This is possible, to a degree.</p> <h2>Option 1: Covering element with semi-transparent border</h2> <p><div class="snippet" data-lang="js" data-hide="true"> <div class="snippet-code snippet-currently-hidden"> <pre class="snippet-code-css lang-css prettyprint-override"><code>body, html{ height:100%; width:100%; padding:0; margin:0; background:blue; } #overlay{ height:100%; width:100%; position:fixed; border:50px solid rgba(255,255,255,.3); box-sizing:border-box; top:0; left:0; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id='overlay'&gt;&lt;/div&gt; content content content contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent</code></pre> </div> </div> </p> <h2>Option 2: 3x3 grid with the central element fully transparent</h2> <p><div class="snippet" data-lang="js" data-hide="true"> <div class="snippet-code snippet-currently-hidden"> <pre class="snippet-code-css lang-css prettyprint-override"><code>body, html { height: 100%; width: 100%; padding: 0; margin: 0; position: fixed; background: blue; } #overlay { display: table; height: 100%; width: 100%; position: absolute; top: 0; left: 0; } .row { display: table-row; } .cell { display: table-cell; opacity: 0.9; background: grey; } .row:nth-child(2) .cell:nth-child(2) { opacity: 0; }</code></pre> <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id='overlay'&gt; &lt;div class='row'&gt; &lt;div class='cell'&gt;&lt;/div&gt; &lt;div class='cell'&gt;&lt;/div&gt; &lt;div class='cell'&gt;&lt;/div&gt; &lt;/div&gt; &lt;div class='row'&gt; &lt;div class='cell'&gt;&amp;nbsp;&lt;/div&gt; &lt;div class='cell'&gt;&amp;nbsp;&lt;/div&gt; &lt;div class='cell'&gt;&amp;nbsp;&lt;/div&gt; &lt;/div&gt; &lt;div class='row'&gt; &lt;div class='cell'&gt;&lt;/div&gt; &lt;div class='cell'&gt;&lt;/div&gt; &lt;div class='cell'&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; content content content contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent contentcontent</code></pre> </div> </div> </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.
    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