Created
December 7, 2010 15:09
-
-
Save chewmanfoo/731882 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
## the html: | |
<div class="left_col"> | |
<p> | |
A | |
</p> | |
</div> | |
<div class="right_col"> | |
<p> | |
B | |
</p> | |
</div> | |
<div class="left_col"> | |
<p> | |
C | |
</p> | |
</div> | |
<div class="right_col"> | |
<p> | |
D | |
</p> | |
</div> | |
## the css | |
.left_col { | |
margin: 10px; | |
padding: 10px; | |
background-color: white; | |
color: black; | |
width: 300px; | |
height: 100px; | |
} | |
.right_col { | |
margin: 10px; | |
padding: 10px; | |
background-color: white; | |
color: black; | |
width: 300px; | |
height: 100px; | |
float: right; | |
} | |
## the goal: | |
+-------------------------------------------------------------------------------------+ | |
| A B | | |
| C D | | |
+-------------------------------------------------------------------------------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment