It makes more sense for the link to be part of <header>, both semantically and for styling.
header {
display: flex;
- justify-content: center;
+ flex-direction: column;
+ align-items: center;
+ margin-block: 24px;
}
main {
margin-inline: auto;
}
+ h1,
+ a {
+ margin: 0;
+ }
+
a {
inline-size: fit-content;
text-decoration: none;
color: hsl(216deg 50% 40%);
}
- .github {
- display: block;
- margin-block: 24px;
- }
-
.github:hover,
.github:focus {
text-decoration: underline;
<body>
<header>
<h1>solc-metadata</h1>
+ <a href="https://github.com/ardislu/solc-metadata" class="github">GitHub</a>
</header>
<main>
- <a href="https://github.com/ardislu/solc-metadata" class="github">GitHub</a>
-
<form>
<label for="address">Smart contract address</label>
<input name="address" id="address" value="0x63c1735a6b7419ae4c7b87c486ac7c393d983980" required data-1p-ignore data-lpignore>