Skip to content

Instantly share code, notes, and snippets.

@rmacfie
Last active May 8, 2017 16:41
Show Gist options
  • Save rmacfie/e065e0bf8ea3ce21ce9679d4237aadb8 to your computer and use it in GitHub Desktop.
Save rmacfie/e065e0bf8ea3ce21ce9679d4237aadb8 to your computer and use it in GitHub Desktop.
side-by-side
<!DOCTYPE html>
<html>
<head>
<title>Side by Side</title>
<meta http-equiv="refresh" content="30" />
<style>
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
html, body {
height: 100%;
margin: 0;
padding: 0;
background-color: whitesmoke;
}
body {
display: flex;
}
iframe {
margin: 0;
padding: 0;
border: none;
}
.side {
flex: 1;
border-left: 1px solid gray;
}
.side:first-child {
border-left-width: 0;
}
</style>
</head>
<body>
<iframe class="side" src="http://a.example.org"></iframe>
<iframe class="side" src="http://b.example.org"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment