I have been working on a website project using Bootstrap
. The design looks great, but I am facing an issue with the items being displayed incorrectly on IE and Firefox, while they render perfectly on Chrome.
To troubleshoot, I checked the CSS properties in developer tools for all three browsers and found no discrepancies. Then, I adjusted the width of the div to > 33%
to ensure it displays properly in a two-column format across all browsers. Initially, the div had a width of 25%
, defined by .col-sm-3
from bootstrap.min.css
.
Can anyone suggest a solution to display four items in a row as intended? Below are screenshots from each browser:
And here is the code:
HTML Markup
(HTML code)
And the CSS
(CSS code)
For reference, I am using IE 11, Firefox 38.0.5, and Chrome 43 (64-bit) on Windows 8.1. Any suggestions for fixing this issue would be greatly appreciated.
EDIT: Adding
<div class="clearfix"></div>
resolved the problem. I inserted it after the first row's four items.