many thanks to ddevault for the help :)
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
- <header>
- <h1 id="title">bandali's</h1>
- <h2 id="subtitle">contact info</h2>
- </header>
- <article>
- <div class="section">
+ <main>
+ <header>
+ <h1 id="title">bandali's</h1>
+ <h2 id="subtitle">contact info</h2>
+ </header>
+ <section>
<p>
email is by far my preferred method of communication. i may
be contacted at bandali at gnu dot org.
<p>
email is by far my preferred method of communication. i may
be contacted at bandali at gnu dot org.
+ <h3>elsewhere</h3>
+ <section>
<p>
you may also find me at a few other places online. stricken
through accounts are those i don’t use anymore, unless
<p>
you may also find me at a few other places online. stricken
through accounts are those i don’t use anymore, unless
<li><strike><a href="https://github.com/notbandali">notbandali</a> on github</strike></li>
<li><strike><a href="https://twitter.com/notbandali">notbandali</a> on twitter</strike></li>
</ul>
<li><strike><a href="https://github.com/notbandali">notbandali</a> on github</strike></li>
<li><strike><a href="https://twitter.com/notbandali">notbandali</a> on twitter</strike></li>
</ul>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
- <header>
- <h1 id="title">bandali's</h1>
- <h2 id="subtitle">corner on the interwebs</h2>
- </header>
- <section>
+ <main>
+ <header>
+ <h1 id="title">bandali's</h1>
+ <h2 id="subtitle">corner on the interwebs</h2>
+ </header>
<nav>
<ul id="academia">
<li><a href="cv">cv</a></li>
<nav>
<ul id="academia">
<li><a href="cv">cv</a></li>
<li><a href="research-interests">research interests</a></li>
</ul>
</nav>
<li><a href="research-interests">research interests</a></li>
</ul>
</nav>
- </div>
- </section>
- <section>
<nav>
<ul id="personal">
<li><a href="blog">blog</a></li>
<nav>
<ul id="personal">
<li><a href="blog">blog</a></li>
<li><a href="contact">contact</a></li>
</ul>
</nav>
<li><a href="contact">contact</a></li>
</ul>
</nav>
+main {
+ margin: auto;
+ max-width: 38em;
+}
+
body > header {
margin-bottom: 2em !important;
}
body > header {
margin-bottom: 2em !important;
}
-section {
- position: relative;
-}
-section > h3 {
- position: absolute;
- right: 75%;
- width: 25%;
- margin: 0;
- padding: 0 1em 0 0; /* 1.75 */
- font-weight: normal;
- font-size: 1em;
+main {
+ display: grid;
+ grid-template-columns: auto 38em auto;
+ grid-gap: 1em;
+}
+
+main > h3 {
+ grid-column: 1;
+ font-size: 1em;
+ font-weight: normal;
-section > .section, article > .section, body > header {
- position: relative;
- left: 25%;
- width: 50%;
- margin: 0;
- padding: 0;
- max-width: 38em;
+
+main > header, main > section {
+ grid-column: 2;
+}
+
+main > h3:first-of-type, section:first-of-type > p, section:first-of-type ul {
+ margin-bottom: 0;
+}
+
+main > h3:last-of-type, section:last-of-type > p, section:last-of-type ul {
+ margin-top: 0;