Created
April 16, 2017 17:17
-
-
Save pdxwolfy/cacb04edb07309bdf1a05fed5463c750 to your computer and use it in GitHub Desktop.
This file contains 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 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