Last active
May 8, 2017 16:41
-
-
Save rmacfie/e065e0bf8ea3ce21ce9679d4237aadb8 to your computer and use it in GitHub Desktop.
side-by-side
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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