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

How to Create a Single Border Around Multiple Paragraph Styles in Reflowable EPUB Export

Community Beginner ,
Oct 05, 2024 Oct 05, 2024

Copy link to clipboard

Copied

Trying to export a reflowable epub with multiple paragraph styles. A few have borders and use different paragraph styles but all need one border around multiple styles instead of breaking them up into separate boxes.

 

<Title renamed by MOD>

TOPICS
EPUB , How to

Views

204

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 ,
Oct 05, 2024 Oct 05, 2024

Copy link to clipboard

Copied

Hi @n19005336:

 

You can have one border around multiple consecutive paragaphs with the same style name, but they wil break into independent borders if you are using multiple styles. 

 

~Barb

 

2024-10-05_18-18-47 (1).gif

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
Guide ,
Oct 06, 2024 Oct 06, 2024

Copy link to clipboard

Copied

Sorry Barb, it's false!

 

Capture d’écran 2024-10-06 à 10.42.49.png

 

(^/)  The Jedi

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 ,
Oct 06, 2024 Oct 06, 2024

Copy link to clipboard

Copied

quote

Sorry Barb, it's false!


By @FRIdNGE

 

Does it work after exporting to ePUB? 

 

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 ,
Oct 06, 2024 Oct 06, 2024

Copy link to clipboard

Copied

LATEST

The 'merging border' feature is exclusive to InDesign. It won't work in an export to EPUB. Even if meticulously set up and working in an ID layout, the paragraphs will separate to individual ones, usually preserving shading, borders, etc. but not merged.

 

The only two ways to get multiple paragagraphs in a single border in EPUB is to put them in a text frame with a defined border (which might behave oddly over virtual page splits), or to create a three-part style as a BORDERED TOP, BORDERED and BORDERED BOTTOM set. Those should be able to be set up to auto-merge in InDesign if the bottom and top styles are children of the base bordered style... but maybe not.

 

The only absolute way to have a bordered paragraph group in both is to use three identical styles in ID (so the borders would be identical and merge) and then redefine the three styles using CSS at export, to give them the different characteristics to blend together in EPUB.

 

Does that make sense? Happy to explain further if that's not enough direction.

 

ETA: In a quick test, this was the best I could do in ID:

JamesGiffordNitroPress_0-1728229979079.png

which exported (in both Kindle Previewer and Thorium Reader) to this:

JamesGiffordNitroPress_1-1728230026283.png

 

So to get both of them with perfect merged borders, I think CSS styles will be needed. Use three identical but separately named styles in ID, which will merge perfectly, then tweak them in CSS to adjust the borders and settings on each to more or less match the ID example above.

 

And ETA2: Here's some basic CSS that assumes the three styles are defined in ID with a full border that uses matching settings so the paragraphs merge there:

 

p.BORDER { border-top:none; border-bottom:none; }
p.BORDER-top { border-bottom:none; }
p.BORDER-bottom { border-top:none; }

 

This should result in the paragraphs merged under a continual visible border in EPUB as well.

 

You can, of course, do one or the other — if the only desired format is EPUB, the faults seen in ID don't matter and you can use the simpler approach.


┋┊ 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