Skip to content

Instantly share code, notes, and snippets.

@furenku
Last active November 4, 2021 00:29
Show Gist options
  • Select an option

  • Save furenku/947d9368e307452cd77a31af6e74c0a2 to your computer and use it in GitHub Desktop.

Select an option

Save furenku/947d9368e307452cd77a31af6e74c0a2 to your computer and use it in GitHub Desktop.
holygrail
html,
body {
/* w100p */
width: 100%;
/* h100p */
height: 100%;
/* m0 */
margin: 0;
/* p0 */
padding: 0;
}
header#cabecera {
/* h4rem */
height: 4rem;
}
footer#pie {
/* h3rem */
height: 3rem;
}
.contenedor-central {
/* h */
height: calc( 100vh - 7rem );
/* dg */
display: grid;
/* gtc */
grid-template-columns: 10rem 1fr 10rem;
}
header#cabecera,
footer#pie,
.contenedor-central aside {
/* dg */
display: grid;
/* pic */
place-items: center;
}
main#principal {
/* p2rem */
padding: 2rem;
/* ovya */
overflow-y: auto;
}
<!-- html:5 -->
<!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>Holy Grail</title>
<!-- link -->
<link rel="stylesheet" href="estilos.css">
</head>
<body>
<!-- header#cabecera -->
<header id="cabecera">
Cabecera
</header>
<!-- .contenedor-central -->
<div class="contenedor-central">
<!-- aside#izquierda -->
<aside id="izquierda">
Izquierda
</aside>
<!-- main#principal -->
<main id="principal">
Principal
</main>
<!-- aside#derecha -->
<aside id="derecha">
Derecha
</aside>
</div>
<!-- footer#pie -->
<footer id="pie">
Pie
</footer>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment