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

alignment of table on EPUB

Enthusiast ,
Apr 22, 2023 Apr 22, 2023

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
739
Translate
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.

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

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.

Translate
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

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.

Translate
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
LATEST

I got the result.

 

IdIdEPUBEPUB

Translate
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