Skip to content

Instantly share code, notes, and snippets.

@auchenberg
Created March 9, 2012 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save auchenberg/2005744 to your computer and use it in GitHub Desktop.
Save auchenberg/2005744 to your computer and use it in GitHub Desktop.
Untitled
html {
}
.image-block {
vertical-align: top;
margin: 0px;
word-break: break-all;
}
.image-block .bd {
display:table-cell;
vertical-align: top;
zoom:1;
> :first-child{ margin-top:0; }
> :last-child{ margin-bottom:0; }
}
.image-block .img {
float: left;
vertical-align: top;
}
<div class="image-block" style="background: blue">
<div class="img" style="background: red">
Iconhere
</div>
<div class="bd" style="background: green">
abcdedghsdfsdfsdfsdfsdjkfsdbfjsdfsdfdabcdedghsdfsdfsdfsdfsdjkfsdbfjsdfsdfdabcdedghsdfsdfsdfsdfsdjkfsdbfjsdfsdfd
dedghsdfsdfsdfsdfsdjkfsdbfjsdfsdfddedghsdfsdfsdfsdfsdjkfsdbfjsdfsdfd
</div>
</div>
{"view":"split-vertical","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment