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

Can't find styles in exported CSS

Engaged ,
Nov 04, 2025 Nov 04, 2025

I have all the settings turned on to generate CSS, and even provided specific class names for a bunch of styles in my document.

 

In the files generated by HTML export, they aren't defined. They're not in idGeneratedStyles.css. The names only appear in the HTML files themselves, as:

<p class="Step-A ParaOverride-1">
<p class="Step-1 ParaOverride-1">
 
I see no definition of attributes anywhere, any of the stuff you see in the Export Tagging dialog. And heaven forbid this text even be selectable in the dialog. What gives?
 
noStyleNoClass.png
TOPICS
Import and export
110
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 ,
Nov 04, 2025 Nov 04, 2025

I thnk that's how InDesign’s HTML export is working as designed it only outputs CSS for styles that actually change appearance. The “Export Tagging” classes you set are structural, not stylistic, so InDesign just names them in the HTML without generating matching CSS. If you need full style definitions, add real formatting to each style,  maybe try the EPUB, or switch to a plugin like in5, Mag+ or PubCoder for more control.

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
Engaged ,
Nov 04, 2025 Nov 04, 2025

Thanks for the reply. I don't know where you get that idea, though. I have plenty of styles that change appearance. Some apply bold, underline, alignment, indentation, numbering, bullets, text size...

 

It shows the alleged CSS attributes right there, specifying a font.

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 ,
Nov 05, 2025 Nov 05, 2025

Hmm sorry about that - I don't know either let me go a bit deeper see if it makes sense.

Well I'm no an epub/or HTML/CSS exporting guy - very rarely do it, so I'm trying to help and maybe some of what I say will point you in a direction.

Lets understand this a bit more

 

Styles that visibly change appearance aren’t showing up in idGeneratedStyles.css - is this part right?

 

Does this make sense to you InDesign will only output CSS for styles it recognises as authored paragraph/character/object styles or explicit exported overrides. If formatting is applied as a local override, as part of a nested object, or via features InDesign doesn’t translate to CSS on export, you’ll see class names in the HTML but no matching rules in the generated CSS.... ----> Is this what you're seeing?

 

If so

Confirm they’re real styles, not local overrides.

Select the text and open the Paragraph/Character Styles panel. If it shows “+” or “Override” next to the style name, click the menu Clear Overrides (or Redefine Style if you want the override baked into the style). Re-export and check idGeneratedStyles.css.

 

Verify the style actually contains CSS-exportable attributes.

Some features (anchored objects, certain glyph/typographic features, nested bullets, anchored images) don’t always become CSS properties. Try adding a simple, clearly exportable change (e.g., font-size or color) to one style and re-export to see if it appears.

 

Check Export Tagging vs Exported CSS settings.

Export Tagging assigns class names (structural). Export preferences control whether CSS definitions are written. In the HTML export dialog, ensure “Generate CSS” / “Include Style Definitions” are checked and that “Preserve Local Overrides” is OFF if you want clean style rules.

 

Look for ParaOverride-* origin.

Those come from local formatting that wasn’t saved into the style. Clearing/redefining the style or removing overrides will remove ParaOverride-* and let InDesign output the canonical style rule.

 

Try an EPUB export as a test.

Export to EPUB (Fixed or Reflowable) and inspect the CSS inside the EPUB package (OEBPS/Styles). EPUB export often produces more complete CSS rules and can help pinpoint what’s being lost in the HTML export path.

Minimal test file.

 

Create a tiny test doc: one paragraph style, apply it to text, give it a single property (font-size or color), export HTML. If the rule appears, incrementally add the real formatting from your production doc until something drops it  that reveals the problematic attribute.

 

If none of the above explains it

You might need to drop a sample indesign file to see what's going on.

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
Engaged ,
Nov 05, 2025 Nov 05, 2025

Thanks for all that. There are almost no paragraph-style overrides in my document. Almost all overrides are for character formatting.

 

All the styles are pretty simple, and are almost exclusively altering properties that have CSS equivalents. In fact I just wrote my own exporter that does go through all the styles and produce legitimate CSS classes.

 

None of my paragraph styles are written to the stylesheet as classes; that is the entire problem. I have no idea what InDesign is doing, but it seems pretty useless.

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 ,
Nov 05, 2025 Nov 05, 2025

Did you try the EPUB route to see if it produces a different result? That export usually generates a more complete stylesheet, so it can be a good way to check whether InDesign is dropping definitions during the standard HTML export or if something else is at play.

 

I’ve honestly no idea either it’s really hard to know what’s happening without seeing a sample file, the resulting HTML/CSS, or even a simplified test version that reproduces the issue. InDesign’s export logic can be pretty opaque, and sometimes small document quirks (like local overrides, nested styles, or features it doesn’t fully support) can cause whole chunks of CSS to disappear.

 

What’s your end goal with this? Are you trying to get fully usable HTML/CSS directly out of InDesign for web use, or just a structural export to hand off to developers? The approach might differ depending on that, if you need a clean, ready-to-use front-end output, you may have better luck with in5 or a custom script, since they translate InDesign’s styles far more faithfully than Adobe’s native exporter.

 

If you can share a minimal example, it’d help narrow down whether this is a bug, a limitation, or something in the export setup.

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
Engaged ,
Nov 05, 2025 Nov 05, 2025

Thanks. The goal is to get out of InDesign entirely and move to an online tool. I have written a couple of UXP plug-ins to clean up our documents by getting rid of ad-hoc formatting and replacing it all with styles, and then export the entire body of text as HTML tagged with these styles. We are supposed to be able to import HTML and CSS into a tool that we're evaluating at the moment.

 

I'm writing out a stylesheet that defines CSS containing only the paragraph-style attributes that matter to us. We have no nested styles and pretty simple formatting needs. InDesign's inability to produce sensible output for our bog-simple use case pretty much sums up why we can't wait to trash it and liberate ourselves.

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 ,
Nov 05, 2025 Nov 05, 2025

Again, need to see samples of what you're doing, what's working and what's not. 

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
Engaged ,
Nov 06, 2025 Nov 06, 2025

Thanks, but it's pretty moot at this point.

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 ,
Nov 06, 2025 Nov 06, 2025

What's moot? You haven't provided a tangible file to see what's going on - I can only guess. 



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
Engaged ,
Nov 06, 2025 Nov 06, 2025
LATEST

The whole problem is moot because I wrote a plug-in that exports proper CSS classes from the document's styles:

I'm writing out a stylesheet that defines CSS containing only the paragraph-style attributes that matter to us.

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