Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    Alignment is in general possible with some “Custom CSS” like

    .tablepress-id-123 .column-3 {
      text-align: right;
    }

    I’m not sure about the height that you are refering to. There’s barely any text in that table, but only a big map and some <iframe> with weather information.
    Now, to be honest, I can’t yet see what you are using a table for, here… Are you using that for layout purposes? In that case, modern HTML/CSS approaches are much better for that!

    Regards,
    Tobias

    Thread Starter Arro

    (@arro)

    Thank you for the immediate response and please excuse my beginner questions.

    I cannot find small weather widgets like the <iframe> you saw and those are only for USA locations so I have decided it will be necessary to use text and link to a weather site.

    So yes, the table is for layout purposes because I cannot imagine how to get 24 cities up and down both sides of the map and maybe a few across the top or bottom without a table. Like I said, I am a beginner at this.

    Okay, so I removed the widgets and am adding text. If you look at the height of the empty rows on the left, that is the ideal height I would like. Then again, if there is a way I can learn to do it without the table it would be better. Sorry to trouble you but if you can point me to where I can learn this I will be most grateful.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    ah, ok. Thanks for the explanations! If you will be adding many cities around the table, then using a table is totally fine. This just wasn’t clear to me at the beginning, so I asked.

    You should probably just start adding the text/cities to the table. Then, you could reduce the font size and the padding (white space) in the cells, with some “Custom CSS” (on the “Plugin Options” screen of TablePress) like

    .tablepress-id-1 td {
      font-size: 10px;
      padding: 2px;
    }

    Regards,
    Tobias

    Thread Starter Arro

    (@arro)

    The font needs to be 16 but when I added the code with the 2px padding the row sizes got even bigger.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    that row has this height because the other rows are empty, but in total the sum of heights of the rows has to match that of the image.

    So, just put in more cities into your table, and you will see a change.

    Regards,
    Tobias

    Thread Starter Arro

    (@arro)

    Oh good, I get it. Thank you so much for helping me. It is a great plugin.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cell height & alignment???’ is closed to new replies.