Hacker News new | past | comments | ask | show | jobs | submit login

> it is not possible to say, "Make this element tall enough to consume the remaining vertical space."

As of just a few months ago, it is. Look into the now-almost-standardised (last call working draft) version of flexbox, which is implemented in recent versions of Firefox and Chrome, and also IE11.

An example of what you say is impossible, in just a few lines of CSS: http://philipwalton.github.io/solved-by-flexbox/demos/sticky...




It looks like you edited your comment. The original link was:

http://philipwalton.github.io/solved-by-flexbox/demos/holy-g...

and now it is:

http://philipwalton.github.io/solved-by-flexbox/demos/sticky...

The latter is not what I described, and I can't get the former to work even in the latest Firefox.


Oops. I read what you said and thought the current one matched what I quoted better - sorry.

I'm using Firefox 32.0.3, and both examples work for me perfectly. I'm not sure what the issue is.


Both work for me fine, too. Latest Firefox on Debian.

According to: http://css-tricks.com/snippets/css/a-guide-to-flexbox/ Firefox should work from v22 on.


flexbox support for mobile browsers is still pretty terrible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: