• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

alignment of table on EPUB

Enthusiast ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

Hi,

 

I wrote table {width: 100%;} and table {width: 90%;} to Id.

 

With table {width: 90%;}, the table is downsized to the left (Screenshot 3).

Is there any way to keep the table aligned to the middle?

 

Hosun

 

Screenshots 2 and 3 deleted.

 

Screenshot 1. IdScreenshot 1. Id

 

TOPICS
EPUB , How to

Views

510

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Apr 22, 2023 Apr 22, 2023

Table postion is controlled by the text format it is attached to. Create a centered paragraph style (such as "Body C"), and tag the paragraph to which the table is attached with that. (Use the arrow keys until you have the full height of the table selected on the left — that's the anchor paragraph.)

 

This will export directly to EPUB. Width is a separate issue and if the effective width is wider than the EPUB or Kindle display, the centering will become moot.

Votes

Translate

Translate
Community Expert ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

The table is similiar to an anchored object inside a paragraph. This paragraph defines the orientation where the table is. If you use a centered paragraph style here the whole table is centered. It is not the patagraph which you make inside table cells, these are a different thing.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

Table postion is controlled by the text format it is attached to. Create a centered paragraph style (such as "Body C"), and tag the paragraph to which the table is attached with that. (Use the arrow keys until you have the full height of the table selected on the left — that's the anchor paragraph.)

 

This will export directly to EPUB. Width is a separate issue and if the effective width is wider than the EPUB or Kindle display, the centering will become moot.


┋┊ InDesign to Kindle (& EPUB): A Professional Guide, v3.1 ┊ (Amazon) ┊┋

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 22, 2023 Apr 22, 2023

Copy link to clipboard

Copied

LATEST

I got the result.

 

IdIdEPUBEPUB

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines