JS Enabled
JS Disabled
* Average result, numbers vary by country and device
All your users are non-JS while they’re downloading your JS.
<noscript>
<p>
This can be added to your HTML and
only show if there is no JS
</p>
</noscript>
OK
.Modal {
z-index: -1;
opacity: 0;
pointer-events: none;
&:target {
opacity: 1;
pointer-events: auto;
z-index: 999;
}
}
<a class="btn" href="#open-modal">
Open Modal
</a>
<div class="Modal" id="open-modal">
...
</div>
<dialog open>
...
</dialog>
2018
Multi column layout officially added to CSS 3 spec
.Masonry {
column-count: 3;
column-gap: 20px;
&_object {
// Otherwise will wrap like a newspaper
break-inside: avoid;
margin-bottom: 20px;
}
}