Last active
November 14, 2016 22:12
-
-
Save jw56578/9c538fe7511c4fa41a45755604171607 to your computer and use it in GitHub Desktop.
Exported from Popcode. Click to import: https://popcode.org/?gist=9c538fe7511c4fa41a45755604171607
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
div{ | |
float:left; | |
} | |
#container{ | |
width:50px; | |
} | |
#one{ | |
width:50px; | |
height:100px; | |
background-color:yellow; | |
} | |
#two{ | |
width:200px; | |
height:150px; | |
background-color:red; | |
} | |
#three{ | |
width:50px; | |
height:150px; | |
background-color:pink; | |
} | |
#four{ | |
width:50px; | |
height:200px; | |
background-color:blue; | |
clear:left; | |
} |
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> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<div id="container"> | |
<div id="one"> | |
I like to be here | |
</div> | |
<div id="three"> | |
i want to be directly under the yellow box | |
</div> | |
</div> | |
<div id="two"> | |
i want to be on the right side of the yellow box<br/> | |
</div> | |
<div id="four"> | |
I want to be under everyone | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment