Skip to content

Instantly share code, notes, and snippets.

@pdxwolfy
Created April 16, 2017 17:17
Show Gist options
  • Save pdxwolfy/cacb04edb07309bdf1a05fed5463c750 to your computer and use it in GitHub Desktop.
Save pdxwolfy/cacb04edb07309bdf1a05fed5463c750 to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en-US">
<head>
<title>javascript</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="assert.js"></script>
<style>
#first, #second, .left, .right {
border: 1px solid black;
}
#first, #second {
overflow: hidden;
}
.left {
background: yellow;
float: left;
width: 45%;
height: 100px;
}
.right {
background: cyan;
float: right;
width: 45%;
height: 200px;
}
#first p {
clear: left;
}
#second p {
clear: right;
}
</style>
</head>
<body>
<div id="first">
<div class="left"></div>
<div class="right"></div>
<p>Cleared text</p>
</div>
<div id="second">
<div class="left"></div>
<div class="right"></div>
<p>Cleared text</p>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment