Skip to main content
jeferson_martins
Participating Frequently
November 29, 2018
Question

Making responsive tables in ePUB with InDesign

  • November 29, 2018
  • 2 replies
  • 1269 views

Hello there, is there anyway to make responsive tables with InDesign when you export to ePUB ?

This topic has been closed for replies.

2 replies

BobLevine
Community Expert
Community Expert
November 29, 2018

Tables are just not responsive. The best thing I can offer is the suggestion to set it to be scrollable on smaller screens.

Add a class to the table and then add some CSS

Something like this:

@media only screen and (max-width: XXXpx) {

.table-class-name {

overflow: hidden;

overflow-x: scroll;

display:block;

}

}

You’ll need to experiment with it.

jeferson_martins
Participating Frequently
November 29, 2018

Thanks Bob, I've been using that code, but it isn't working. When I'm editing the ePUB, there's a specific table style to the tabels. When I export, the class "table_style" goes to the td and tr tags, not only to the table tag. Could it be the error ?

BobLevine
Community Expert
Community Expert
November 29, 2018

Without examining the markup in the HTML and the CSS it's impossible for me to say. Some of it will depend on the reader app, too.

Steve Werner
Community Expert
Community Expert
November 29, 2018

Moving to InDesign EPUB forum