• Resolved tualle

    (@tualle)


    hi!

    thanks for the great plugin

    only thing i’ve been trying to achieve without success is what i’ll try to describe next.. 🙂

    i have a table (surprise surprise!) on my homepage http://www.tualle.pt that has the structure i’ll show on the following image:

    [url=http://postimage.org/][img]http://s1.postimg.org/vs0820jpr/tablepress.jpg[/img][/url]

    all cells contain widgets, and their height is defined by the size of the widget (especially B2, which is an events calendar, that can be very small if i only have 1 date like at the present moment, or very tall if i have 4 or 5 dates, so it varies all the time..)

    what i want is A1’s height to keep up with those changes and always be equal to the sum of B1+B2+B3+B4 heights so that the table is always rectangular, and not taller on one side than the other

    hope i was clear and someone can help me. would make the site look much better all the time 🙂

    best regards!

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    For the table, this will actually always be the case, as tables will always be rectangular.
    It’s however possible for your content in the table to have different heights nevertheless, but that’s nothing that TablePress can influence.

    Regards,
    Tobias

    Thread Starter tualle

    (@tualle)

    thanks for your time Tobias!

    so there’s really no way to force it to behave like i wanted, and the taller column will always define the table’s height? :\

    i really need to have B column defining the maximum height of the table, instead of A1 doing it (because IT WILL do (it is small right now, because i manually defined its height and it has a scroll bar, but if i leave it fullsized it will be really tall, making the table equally tall and create a huge amount of white space on B1, 2, 3, 4))

    best regards!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I don’t really see a way for that 🙁 The thing is that your widgets seems to have a height in them as well, and that’s the decisive factor for the height of the cell in column 1. Only if the sum of the heights of the cells in column 2 would be higher than that would the cell in column 1 extend. However, the widget in column 1 would not be taller.

    Now, that leads me to a closely related issue: You are using tables for layout/styling purposes. This is not really recommended in modern web design, where HTML tables should only be used to present tabular data. You might be better off with other manual wrapper elements, like <div> containers, where you can apply other CSS code. But that’s obviously outside the possibilities of TablePress.

    Regards,
    Tobias

    Thread Starter tualle

    (@tualle)

    ok, no problem, will try to approach the problem in some different way then

    thanks for having a look at it and the prompt reply 🙂

    best regards!

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! I hope that you can find a good solution!

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘dynamic cell height’ is closed to new replies.