Discrepancies in counting columns between short code and css
-
Hi,
I used #colspan# as the top row.
I have 3 columns in the top row.
After the second row, I have 9 columns.
The 2nd and the 3rd columns of the top row have 3 columns each from the second row.When I tried to adjust 9 columns_widths, I specified “10%|15%|15%|15%|15%|15%|15%”.
This didn’t work. But when I specified “10%|45%|45%”, it worked. The first column has 10% and the 2nd and the 3rd columns have 45% each. So 2rd to 9th columns from the second row has even 15% each. I figured out that from the short code the number of column, when used #colspan#, is counted by the top row.But then I tried to do text-align and used .tablepress-id-111 { text-aligh:center;} and this didn’t work.
But when I do the below it worked but columns are recognized not by the top row.
Columns are recognized as from the second row..tablepress-id-111 .column-1,
.tablepress-id-111 .column-2,
.tablepress-id-111 .column-3
{
text-align: center;
color:red;
}`Please visit this page. Password is 321 and hit ENTER. You can see
https://ichiri.biz/tech/test-page/I am using the below short code. As you see, there is only three column widths.
But the widths of all 9 columns are being arranged.
[table id=111 column_widths=”10%|45%|45%” /]But with the CSS, there are only 3 columns out of 9 columns are decorated.
I believe that you may already know about this. Due to backward compatibility, I believe that you may not be able to fix this but I hope that knowing this issue, you may be able to keep continuous good quality in the future.And I would like to know if #colspan# when #colspan# at the top row is used.there any way I can adjust column_width independently from the second row.
Best regards,
Junji
The topic ‘Discrepancies in counting columns between short code and css’ is closed to new replies.