Allocate width above a row's minimum

A scheduling application's row contains, from left to right, a fixed 160 px label, a first input with minimum width 200 px, and a second input with minimum width 300 px. The row has 20 px padding at each end and two 20 px internal gaps.


The layout reserves these minimum widths first, then divides all additional width between the inputs using stretch weights 1 and 3, respectively. Both inputs fill their allocated widths and have no maximum width. No other margins or borders contribute to the calculation.


Find the minimum content width needed for the row. Then find the final width of each input when the content width is 1080 px. Give all three answers in px, to the nearest whole pixel.


A row contains a fixed label followed by two inputs with different stretch weights.


Your answers

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Graphical User Interfaces Questions: