Search code examples
cssfirefoxyui-pure-css

PureCSS.io - Pure Grid (height) displays different in Firefox


I am using the Pure Grids of PureCSS. I have a pure-g with three pure-u-1-3, containing a few paragraphs. The problem is that there is a difference in display between Chrome/IE and Firefox when one of the units is longer than the others.

http://jsfiddle.net/f3YNe/3/

https://i.sstatic.net/VFVYu.png

I have tried to use jQuery to calculate the highest pure-u-1-3 and setting the rest to this height. But it didn't work out as expected, since this grid has to be responsive as well (using pure-g-r)

Does anybody know how to make Firefox produce the same output?


Solution

  • As purecss has fixed the problem (v0.6) by implementing it in every browser, this answer is obsolete.

    Previous answer:

    Your problem is that PureCSS is using -ms-display: flex in Internet Explorer and -webkit-display: flex in Webkit Browsers. Opera, Firefox and (obviously) older IEs don't get this solution.

    To get it working in Firefox (20+) and Opera you could apply the following in your stylesheet:

    .pure-g-r {
        display: flex;
    }
    

    Further information: http://css-tricks.com/using-flexbox/

    Here a example using your fiddle: http://jsfiddle.net/f3YNe/12/