JohnTendik / jtrt-tables

A Wordpress plugin to help users create responsive tables without having to read or write code.
GNU General Public License v2.0
22 stars 6 forks source link

adjustable cell height ? #46

Open MichaelAxelsson opened 7 years ago

MichaelAxelsson commented 7 years ago

Hi! Nice plugin! Is there a way to adjust the height of cells or rather the height of rows?

I would like to have a table that presents more rows on the page. Perhaps it has to do with margins, but I can't find any porssibility to adjust them either.

Is there a way to do this or would you consider adding it?

JohnTendik commented 7 years ago

Hey,

Thanks for using my plugin I'm glad you found it useful. Unfortunately currently im on vacation, I don't have access to a computer other than my phone so I can't really do much from my position but I will try to help you out best I can.

For row heights, currently you cannot specify the height of rows, however if you wish to display multiple lines in one cell/row, you can use ALT + ENTER which will create a new line in the cell, maybe this will accomplish what you want.

I do have plans to make the tables more customizable, I will add row heights onto my to do list but it won't be available for at least another month( vacation :D )

Also, if you are comfortable with CSS, you can target the table using the ID of the table then add custom styles for your specific table. You will have to do this in either your theme's custom css section or add your code to the main stylesheet.css file for your theme.

For example

#jtrt_table_81 tbody tr:nth-child(2){ height:30px; }

Change 81 to your table Id number, if height doesn't work, you can try line-height:30px instead, tables are sometimes iffy and difficult to work with in terms of styling so try both and see which works better.

I'm sorry I can't do much at this time, hopefully this helps you out. If you have any other questions or issues please feel free to contact me, I will do my best to help out.

Thanks John

alogomez commented 7 years ago

Hi, John, I've been trying to modify CSS with your instructions however I haven't been able to reduce the cell height. I agree with Michael I'd like to fit more info on the same page... thanks