Treesaver / treesaver

JavaScript library for creating column and page-based layouts
GNU General Public License v2.0
1.06k stars 107 forks source link

Percentage widths #275

Open scottkellum opened 12 years ago

scottkellum commented 12 years ago

Add support for percentage widths on columns and grids. This would mean recalculating text flow on resize but would greatly increase the range of screen sizes supported while reducing number of grids.

Grid size would be relative to the viewer, so a grid of 100% would span the entire viewer. Column and container size would be relative to the grid, so if the grid were 50% wide and the column was 50% of that, the column would be 25% of the viewer width.

max-width and min-width will still be used to swap out different grids, so if you wish to switch from a 1 column to a 2 column grid at 800px, then the 1 column grid would have a max-width of 800px.

JonathanMH commented 12 years ago

I just tried to make this work, without knowing it doesn't yet. I would love this feature!