css/balance

This commit is contained in:
Marc Beninca 2025-01-26 21:55:22 +01:00
parent abfb2e60cc
commit eb3303e753
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 7 additions and 1 deletions

View file

@ -24,7 +24,7 @@
<main>
<!-- Comment. -->
<h1>Root heading</h1>
<h1>This is some long root heading</h1>
<div class="sectionless">
<p><span class="thing">It</span> is <strong>important</strong>.</p>

View file

@ -40,8 +40,10 @@ padding: 1em 2em;
.columns {
display: grid;
gap: 1em;
@media (width > 600px) {
grid-template-columns: 1fr 2fr;
}
}
.sectionless {
background-color: #630;

View file

@ -5,3 +5,7 @@ margin: .5px;
padding: .5em;
/**/
}
h1, h2, h3, h4, h5, h6 {
text-wrap: balance;
}