Skip to content

Instantly share code, notes, and snippets.

@edelabar
Created March 24, 2011 17:49
Show Gist options
  • Save edelabar/885512 to your computer and use it in GitHub Desktop.
Save edelabar/885512 to your computer and use it in GitHub Desktop.
.container {
width: 420px;
}
.content {
border: solid 10px #3570d6;
background: white url( background_invert.gif ) left center no-repeat;
}
.left {
float: left;
width: 200px;
height: 300px;
margin-left: 25px;
background-color: green;
}
.right {
float: right;
width: 100px;
height: 200px;
margin-right: 25px;
background-color: cyan;
}
<div class="content">
<div class="left"></div>
<div class="right"></div>
<div style="clear: both;"></div>
</div>
...
.content {
border: solid 10px #3570d6;
background: white url( background_invert.gif ) center center no-repeat;
}
...
...
.content {
min-height: 1px;
border: solid 10px #3570d6;
background: white url( background_invert.gif ) left center no-repeat;
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment