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

Setting simple margins on html export

New Here ,
Apr 23, 2024 Apr 23, 2024

Copy link to clipboard

Copied

When exporting and saving as html, the HTML export options dialog box does not have a setting to specify a margin like helpx.adobe.com/indesign article says it should. Resulting html page does not have any outside margin. Updated to InDesign version 19.3, didn't help. How can I set some margin on the html page?

TOPICS
Import and export

Views

53

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 23, 2024 Apr 23, 2024

Copy link to clipboard

Copied

LATEST

I don't recall there ever being margin settings on HTML export. There is such a setting on EPUB export — but it is nonfunctional other than to write values to the EPUB file that are ignored by nearly all readers.

 

HTML export from ID is an odd combination of 'very powerful' and 'nearly useless unless you write your own CSS style code for most elements.' If you want general margins, add them to a body { } element in CSS.

 

However, keep in mind that HTML export has had a crippling bug for several versions now: it writes user CSS calls to the file ahead of the base, ID-generated one. This means most or all custom CSS is overwritten or reset. You have to open the exported file and swap the order of the CSS file statements... on every export.


╟ Word & InDesign to Kindle & EPUB: a Guide to Pro Results (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