I've been working on this for a while now, but I can't seem to find a solution. The issue I'm facing is that I want to display a glyphicon before the content of a text-block, and I need that element with the icon to fill up all the height that the body needs. This setup works perfectly in all browser versions except for IE. I have simplified the code and created a demo here.
<div class="block">
<div class="body">BODY</div>
</div>
.body::before {
background: blue;
content: "\e005";
font-family: "Glyphicons Halflings";
display: table-cell;
width:30%;
}
.body {
background-color: green;
display: table;
width: 25%;
}
If you toggle the display property to 'table-cell' on the provided fiddle using IE11, you'll see where my issue lies. Can anyone provide me with a solution to this problem, or even better, explain what's causing it?