MDN self-hosted library · e01.org

`<display-box>` CSS type

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<p>Visible text</p>
<p class="secret">Invisible text</p>
css
p.secret {
  display: none;
}
html
<div class="outer">
  <div>Inner div.</div>
</div>
css
.outer {
  border: 2px solid red;
  width: 300px;
  display: contents;
}

.outer > div {
  border: 1px solid green;
}