Welcome to my page where I am utilizing the latest version of Bootstrap v3.2.0
I have encountered an issue when using the display: table-cell;
CSS property within a div block. Specifically, the max-width: 100%;
CSS property does not function as expected for images inside the div block when viewed in Firefox. Interestingly, this problem does not occur in other browsers.
Check out the demo: http://jsfiddle.net/Q7742/2/embedded/result/
Below is the HTML code snippet:
<div class="container">
<div class="table-container">
<div class="col-table-cell col-lg-4"><img src="//farm1.staticflickr.com/22/28331349_fd0fbadbbd_z.jpg?zz=1"></div>
<div class="col-table-cell col-lg-5">B</div>
<div class="col-table-cell col-lg-3">C</div>
</div>
</div>
Here is the CSS code snippet:
.col-table-cell.col-lg-5 {
background: #ddffdd;
}
.col-table-cell.col-lg-3 {
background: #ffffdd;
}
img {
display: block;
height: auto;
max-width: 100%;
}
@media (min-width: 1200px) {
.table-container {
display: table;
width: 100%;
}
.table-container .col-table-cell {
display: table-cell;
vertical-align: middle;
float: none;
}
}