CSS Master

(Primo) #1
Figure 4.42. Our form field component at 330 (top) and 840-pixels wide

Here’sthetrickybitaboutflex-growandflex-shrinkvalues:they’reproportional.
Yes,flex: 1 0 automeansourinputelementwillbewiderthanourbutton.But
changingthevalueofourbutton’sflexpropertytoflex: 1 0 autodoesn’tneces-
sarilymeanthatbothelementswillhavethesamesize,asshowninFigure4.43.


Complex Layouts 179

Free download pdf