Skip to content

Instantly share code, notes, and snippets.

@plindberg
Created April 18, 2012 18:45
Show Gist options
  • Save plindberg/2415713 to your computer and use it in GitHub Desktop.
Save plindberg/2415713 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
.container {width:100%;display:table;background:red;}
.fixed_width {
background:green;
width:160px;
height:300px;
border:6px dashed #153410;
display:table-cell;
}
.dynamic_width {
background:blue;
height:300px;
border:6px dashed #f6c230;
display:table-cell;
width:auto;
}
*html .fixed_width {float:left;}
<!-- content to be placed inside <body>…</body> -->
<div class="container">
<div class="fixed_width"></div>
<div class="dynamic_width"></div>
</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment