Skip to content

Instantly share code, notes, and snippets.

@malja
Created January 3, 2018 11:56
Show Gist options
  • Save malja/abad25efdcf90b5e41b3620d3af655d6 to your computer and use it in GitHub Desktop.
Save malja/abad25efdcf90b5e41b3620d3af655d6 to your computer and use it in GitHub Desktop.
PPS test HTML část
body {
/* Nutné kvůli height 100vh*/
display: flex;
flex-direction: column;
/* Asi nepotřebné */
width: 100%;
/* Margin je na main */
margin: 0px;
/* 100% výška, 1vh = 1% obrazovky*/
height: 100vh;
}
main {
margin: 20px;
/* Kvůli příliš dlouhému postrannímu panelu */
overflow: hidden;
/* Kvůli dolnímu okraji */
height: calc(100% - 20px);
}
aside {
display: block;
width: 300px;
min-width: 300px;
background-color: gray;
float: left;
/* Roztažení na celou výšku */
margin-bottom: -5000px;
padding-bottom: 5000px;
}
section {
/* Jen aby to bylo vidět */
background-color: brown;
}
article {
text-align: center;
}
<!doctype html>
<html>
<head>
<title>PPS test 2013</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="default.css">
</head>
<body>
<main>
<aside>
&nbsp;
</aside>
<section>
<article>
<img src="http://lorempixel.com/800/600">
<p>funkční odkaz na <a href="#">knihovnu čvut</a></p>
</article>
</section>
</main>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment