Skip to content

Instantly share code, notes, and snippets.

@prof3ssorSt3v3
Created March 10, 2023 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prof3ssorSt3v3/9797e7b82884d0e060cce0573a6101d9 to your computer and use it in GitHub Desktop.
Save prof3ssorSt3v3/9797e7b82884d0e060cce0573a6101d9 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="./main.css" />
</head>
<body>
<header>
<h1>The title</h1>
</header>
<main>
<section class="artwork">
<h2>Artwork</h2>
</section>
<section class="playlist">
<ul>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
<li>1</li>
<li>2</li>
<li>3</li>
<li>4</li>
<li>5</li>
</ul>
</section>
</main>
<footer>
<p>Buttons and times</p>
</footer>
</body>
</html>
* {
box-sizing: border-box;
}
html,
body {
padding: 0;
margin: 0;
}
header {
position: fixed;
top: 0;
left: 0;
right: 0;
background-color: black;
color: white;
padding: 1rem 4rem;
margin: 0;
}
footer {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background-color: black;
color: white;
padding: 1rem 4rem;
margin: 0;
}
header h1 {
font-size: 4rem;
margin: 0;
}
footer p {
font-size: 2rem;
margin: 0;
}
main {
margin-top: 7rem;
display: grid;
grid-template-columns: 1fr 1fr;
}
section h2 {
font-size: 3rem;
}
section ul {
font-size: 2rem;
}
section.artwork {
position: relative;
}
section.artwork h2 {
position: fixed;
top: 7rem;
left: 20%;
}
section.playlist {
}
li {
background-color: orange;
list-style: none;
font-size: 3rem;
padding: 1rem;
margin-block: 1rem;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment