css/div,span

This commit is contained in:
Marc Beninca 2025-01-25 19:42:38 +01:00
parent 01ddc45678
commit c8ffd05352
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
2 changed files with 21 additions and 2 deletions

View file

@ -7,6 +7,13 @@ margin-block ← vspace
*/
* {
/*
margin: 2px;
padding: 2px;
*/
border-color: magenta;
border-style: solid;
border-width: 1px;
box-sizing: border-box;
}
@ -25,6 +32,16 @@ text-align: start;
header {
background-color: #300;
padding: 1em 2em;
}
.sectionless {
background-color: #630;
padding: .5em 1em;
}
.thing {
font-size: 1.5em;
}
main {

View file

@ -18,8 +18,10 @@
<!-- Comment. -->
<h1>Root heading</h1>
<p>It is <strong>important</strong>.</p>
<div class="sectionless">
<p><span class="thing">It</span> is <strong>important</strong>.</p>
<p>Oh yeah, <em>sure</em></p>
</div>
<a href="relative/destination">Go elsewhere…</a>