Skip to main content
Inspiring
December 18, 2019
Question

"Basic Text Frame" object style outputting to ePub with stroke around frame

  • December 18, 2019
  • 1 reply
  • 1205 views

I have the "Basic Text Frame" object style applied to my text frames in an ID document. When I export to ePub the frames are showing with a black stroke around them even though there is no stroke applied in the object style.

 

I just wondered if anyone else is experiencing this or whether it is a known bug? I'm using the latest version of ID on a mac.

 

Any help would be appreciated.

 

Thanks in advance.

This topic has been closed for replies.

1 reply

Derek Cross
Community Expert
Community Expert
December 18, 2019

Reflowable or FXL ePub?

 

JKA@4153Author
Inspiring
December 19, 2019

Hi, it's reflowable. When I looked in the settings for the object style I saw that under the "Export Tagging" option, the tag was set to "section" (see screenshot below). After exporting to ePub and viewing the css I can see that Indesign is creating the following CSS styles:

 

 

 

figure.Above-line-centered {
	border-style:solid;
}
section.Basic-Text-Frame {
	border-style: solid;
}
section.figcaption {
	border-style:solid;
}

 

 

 

It's adding a border around all sections, figures and figure captions. 

 

This must be a bug because when I remove the tag from the object style options dialogue, the output does not contain the border.

 

As this must be a bug, is there a workaround or is a fix expected some time soon?

 

Would be grateful for any advice.

 

March 18, 2022

This is still a bug in InDesign 17.1 and happens in both refowable and fixed layout ePub.

You can resolve with your own CSS added at export time to include:

section, figure {
  border-style: none !important;
}