How to use algebra to solve web design grid issue?
October 23, 2008 6:56 AM Subscribe
I have a super-complicated algebraic equation I (somehow) developed as the solution to developing appropriate grid-based web design that has me completely stumped...
The kicker here is that I need to use existing chunks of content with predefined widths of 680px wide, and 512px wide. I want a grid of equal columns and gutters that would accommodate both dimensions. To the best of my abilities, I've defined the problem as such:
(x*a) + ((x-1)*b) = 512
(y*a) + ((y-1)*b) = 680
where:
a= # of columns
b= # of gutters
x and y are simply the number of columns and gutters needed for each width.
Is this even solvable?
posted by fauxtoes to computers & internet (20 answers total) 2 users marked this as a favorite
So, if you have a column that has 5px of margin (that's outside) on both sides (basically, if you want your gutters to be 10px wide, then each column should have 5px (or 1/2 the gutter's) margin on both sides, and the max width of content is 680px, then each column would be:
680 + 10
and multiple columns would be simply <> * 690.
I know this doesn't exactly speak to Your Alegbra, but it might help you visualize it better.>
posted by judge.mentok.the.mindtaker at 7:09 AM on October 23, 2008