Equalising Column Width

Equalising Column Width

StephenPettStephenPett Posts: 1Questions: 1Answers: 0

I am a complete newbie as far as coding is concerned and this site is really scary, so please be patient and use small words!
I use classic editor in Wordpress - no blocks.
The draft table is at the very bottom of https://www.theprobatedepartment.co.uk/local/ and is set up in TablePress.
But I can't fathom out how to make it neat by equalising the columns before I delete the untidy listing above.
Help much appreciated!

Steve

Answers

  • allanallan Posts: 63,434Questions: 1Answers: 10,458 Site admin

    Column widths in DataTables are determined automatically based on the content. You could use columns.width to each column definition and set it to be 25% which might get it to display more like what you want though.

    How you use that property in TablePress I don't know - you'd need to ask their support.

    Allan

  • allanallan Posts: 63,434Questions: 1Answers: 10,458 Site admin

    Out of interest, why are you using a table there? Would you not be better with a simple list and then if you wanted to style it so it is laid out in a grid, you could use CSS to do that. You don't appear to be using any of the abilities of DataTables there, so I'm not clear on why it would be used.

    Allan

Sign In or Register to comment.