Financial-Times / o-grid

Responsive grid system
http://registry.origami.ft.com/components/o-grid
93 stars 14 forks source link

Dividing row width between unknown amount of children #126

Closed jamesnicholls closed 8 years ago

jamesnicholls commented 8 years ago

It would be useful if I could equally distribute the width of a row between an unknown amount of child elements. So if row contained 2 elements, they'd have a width of 50%, if it contained 3, a width of 33% (i.e. all child elements behave as if they had a flex-grow of 1).

Sorry if this functionality already exists but I couldn't find it in the documentation.

AlbertoElias commented 8 years ago

You might not want a grid in that case. Maybe you can use o-grid for the gutters, to keep them consistent with other sites, but I believe a grid layout is a bit more structured.

jamesnicholls commented 8 years ago

Yeah, fair point. Thought it might fit well in o-grid as it deals with layout, is already using flex``table display and has responsive features baked in.

onishiweb commented 8 years ago

Hi James, was there any action from this or can we close the issue?

jamesnicholls commented 8 years ago

I think it is useful functionality to have but understand that it doesn't really fit into o-grid, so happy to close.