Wide tables become squished in published pages

Hi folks,

I have been trying to improve the look on my published pages, as it appears that wide tables get very squished.


edit: here is the page link

I tried to use CSS to create table borders and to maximise table widths
but I think the published page does not show theme components :smiling_face_with_tear:

Any ideas how I can make wide tables look better?

edit 2: does page published views get stored?

CSS should still work on published pages - is it just JavaScript and the like which doesn’t.

It does have specific classes though (of course).

2 Likes

There are two issues with this published page and the table.

The content-wrapper seems a bit small.

You could try to adjust it by playing with max-width (first part of the css), you can change the value it should still be responsive.

Then the width:100% of the table doesn’t work, probably because the css is a little bit different in the published page. I’ve added a second part in the custom css to fix that

Here is the code:

.published-page {
  .published-page-content-wrapper {
    max-width: 1200px;
    width: 100%;
  }
  .md-table .table {
    width: 100%;
  }
}
3 Likes

Wow thanks! The code does make the page a look a lot better! But the table still seems somewhat squished? Any other thoughts?

This is what it looks like on the platform: