Skip to content
Snippets Groups Projects
Commit a0d7aa4e authored by e9-carter's avatar e9-carter
Browse files

init commit

parents
No related branches found
No related tags found
No related merge requests found
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<met name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<title></title>
</head>
<body>
<div class="body">
<header>Header</header>
<navigation>Navigation</navigation>
<main>Main</main>
<left>left</left>
<right>right</right>
<footer>footer</footer>
</div>
</body>
</html>
\ No newline at end of file
.body {
display: grid;
grid-template-columns: 15% 35% 35% 15%/*repeat(4, 1fr)*/;
grid-template-rows: 20% 10% 30vw 10vw;
grid-gap: 10px/*1em*/;
}
body {
margin: 0 auto;
max-width: 56em; /* em = relative to font size*/
padding: 10px 1em 0;
}
header,
navigation,
main,
left,
right,
footer {
background: #eaeaea;
display: flex;
align-items: center;
justify-content: center;
}
@media (max-width: 700px) {
}
/*http://www.channel4.com/programmes/8-out-of-10-cats-does-countdown/episode-guide
css.sheet line 469 = grid*/
header,
navigation,
footer {
grid-column: 1 / span 5;
}
main {
grid-column: 2 / span 2;
grid-row: 3 / 4;
}
left {
grid-column: 1;
grid-row: 3 / 4;
}
right {
grid-column: 4;
grid-row: 3 / 4;
}
header,
footer {
height: 6vw;
}
navigation{
height: 3vw;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment