-
-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CSS table driven layout sections #343
Comments
I can imagine some cool mixins using |
Yep. Started some work around what I think the Mixins would look like. If you have your own thoughts, suggestions, please share! :) |
Just used |
Thanks for sharing! I have one set up already for vertical centering. Mine has the mixins all separated, because sometimes you need to have an immediate child be a |
I plan to watch what you each come up with, and then abstract them all together. Keep 'em coming! :) In the meantime, I'm adjusting our internal API so that new modules will be easier to write. |
Well, equal-heights columns won't require anything else - http://codepen.io/tsi/pen/BqEna |
Here they are, combined and improved - http://codepen.io/tsi/pen/xDELf |
These mixins are great in general for dealing with display table-cell layouts, but I was hoping for something that would be more compatible with the grid possibly using with-layout. The problem I seem to be having is that while I can use the span functions instead of mixins to get the widths, I have no way to get an accurate combination of width and gutter. I thought I could switch layout to inside, but then it expects padding on both sides of columns, which doesn't match up with the rest of my layout. What would really be useful is a way to set gutter position to inside, but apply necessary padding to one side instead of split and adjust for box-model as necessary. But I forsee problems with width and the first and last mixins. |
Use the |
I was asked to leave some ideas on table driven layouts.
Usually I resort to table driven layouts when I need columns of equal height, and/or need to center unknown items vertically across multiple columns.
Margins become useless when you are using table driven layouts and thus padding must be used for gutters.
I really like the idea of being able to switch sections of my layout to be table driven where necessary.
There seems to be some serious issues with tables and positioning in Firefox. For instance relative positioning is completely ignored in regards to positioning absolute descendants.
Thanks,
The text was updated successfully, but these errors were encountered: