Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox, Flexbox & overflow

Tags:

css

flexbox

After last firefox-update some of css3-code has been broken... Example (jsfiddle).

  • In chromium: normal, chome
  • In firefox 34: firefox 34, bad

Is it bug? Or normal working? What do i need to change to fix it? Why #flex don't resize properly?

HTML:

<div id="outer">     <div id="flex">         <label>123</label>         <input type="text" value="some text" />     </div> </div>   

CSS:

#outer { display: flex; }  #flex {     display: flex;     border: 1px solid green;     outline: 1px solid red; }  label { flex: 0 0 80px; } 
like image 602
faiwer Avatar asked Dec 11 '14 14:12

faiwer


People also ask

Does flexbox work in all browsers?

Flexbox is very well supported across modern browsers, however there are a few issues that you might run into.

Is flexbox still relevant?

Flexbox was introduced in 2009 as a new layout system, with the goal to help us build responsive web pages and organize our elements easily, and since then, it's gained more and more attention. It turns out it's now used as the main layout system for modern web pages.


1 Answers

Fix:

input { min-width: 1px; } 

For vertical direction - min-height;

like image 116
faiwer Avatar answered Sep 29 '22 07:09

faiwer