This is a web related question but is a mathematical problem.
Look at this:
|O|O|O|O|
|O|O|O|
|O|O|
- A vertical line represents a 1 pixel wide horizontal line.
- A 'O' represents a space between the lines.
- All the three rows should have the same width. The space 'O' is streched out to fill the space equally within the row to fill it up. (The last row will get more space than the first.)
- The space width can't contain decimals.
- I want to find the perfect width for all three lines between 960 and 1140 pixels wide.
Questions
- What is the row width?
- How did you calculate it?
What I know so far
- First line have 5 pixels of lines, the second 4 pixels and the third 3 pixels.
- 960 and 1140 are perfect numbers because they can be divided by 3, 4 and 2, but this case includes borders which makes it tricky.