Skip to content

Instantly share code, notes, and snippets.

@hogashi
Created March 11, 2017 15:45
Show Gist options
  • Save hogashi/78ff37af716991b112bc343b9312a3c4 to your computer and use it in GitHub Desktop.
Save hogashi/78ff37af716991b112bc343b9312a3c4 to your computer and use it in GitHub Desktop.
落書き
<html>
<head>
<style>
body {
height: 100vh;
margin: 0;
/* background: #000; */
}
body div {
display: flex;
justify-content: center;
height: 100vh;
align-items: center;
}
body div img {
transform: rotate(-90deg);
/* width: 100vh; */ /* fit by width */
height: 98.5vw; /* fit by height (1.5vw margin is for scroll-bar) */
/* position: fixed; */ /* for erase scroll-bar */
}
</style>
</head>
<body>
<div>
<img src=""> <!-- put image url -->
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment