Skip to content

Instantly share code, notes, and snippets.

@onjiro
Created January 17, 2012 04:00
Show Gist options
  • Save onjiro/1624568 to your computer and use it in GitHub Desktop.
Save onjiro/1624568 to your computer and use it in GitHub Desktop.
画面いっぱいを2画面に表示するサンプル
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
<!--
* {
margin: 0;
padding: 0;
}
html, body {
height: 100%;
overflow: none;
}
html {
width: 200%;
}
body {
width: 100%;
}
p {
width: 50%;
height: 100%;
float: left;
}
p:nth-child(even) {
background-color: #fff;
}
p:nth-child(odd) {
background-color: #aaa;
}
body:after {
clear: both;
}
-->
</style>
</head>
<body>
<p>hoge</p>
<p>hoge</p>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment