<article class="simple">
<p>
<strong>Warning</strong>: The thermostat on the cosmic transcender has
reached a critical level.
</p>
</article>Advanced styling effects / notebook
Advanced styling effects
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
p {
margin: 0;
}
article {
max-width: 500px;
padding: 10px;
background-color: red;
background-image: linear-gradient(to bottom, transparent, rgb(0 0 0 / 25%));
}
.simple {
box-shadow: 5px 5px 5px rgb(0 0 0 / 70%);
}