Display table/table-cell replicates the table counterparts. You certainly don't need to know a tables height to center it. It's no different in CSS...As my example shows.
On Wed, Jun 3, 2015 at 9:04 PM, Ryan Reese <sportsdude.re...@gmail.com> wrote: > http://codepen.io/ryanreese09/pen/NqpMYa > > On Wed, Jun 3, 2015 at 9:02 PM, Roger Blanton <rblan...@ltu.edu> wrote: > >> Because the table approach only works when you know the height of the >> elements. Flex will work no matter what >> >> Hope that clarifies. >> >> — >> Sent from Mailbox <https://www.dropbox.com/mailbox> >> >> >> On Wed, Jun 3, 2015 at 9:01 PM, Ryan Reese <sportsdude.re...@gmail.com> >> wrote: >> >>> I'm confused. You say if you can't use flex, you can't do it. Then you >>> acknowledge the table/table-cell approach exists. So why not use >>> table/table-cell?! >>> >>> On Wed, Jun 3, 2015 at 9:00 PM, Erik Visser <e...@erikvisser.net> >>> wrote: >>> >>> > Roger Blanton schreef op 04-06-15 om 02:26: >>> > >>> >> Without knowing the height of the element or parent container I don't >>> >> think it is possible without using a flex layout with just CSS. >>> >> >>> >> >>> > This is what i remember too. >>> > >>> > >>> > ______________________________________________________________________ >>> > css-discuss [css-d@lists.css-discuss.org] >>> > http://www.css-discuss.org/mailman/listinfo/css-d >>> > List wiki/FAQ -- http://css-discuss.incutio.com/ >>> > List policies -- http://css-discuss.org/policies.html >>> > Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ >>> > >>> >>> >>> >>> -- >>> Ryan Reese >>> ______________________________________________________________________ >>> css-discuss [css-d@lists.css-discuss.org] >>> http://www.css-discuss.org/mailman/listinfo/css-d >>> List wiki/FAQ -- http://css-discuss.incutio.com/ >>> List policies -- http://css-discuss.org/policies.html >>> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/ >>> >> >> > > > -- > Ryan Reese > -- Ryan Reese ______________________________________________________________________ css-discuss [css-d@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/