View Full Version : CSS Styles From InDesign 5.5 Export Problem


SamL
10-17-2011, 04:59 PM
I've been having this problem, and was wondering if other have run in to it. When I export my epub from InDesign, it makes a bunch of styles for the same thing.

For example my header style is

header
{
font-size: 1.5 em;
font-weight: bold;
margin-bottom: 0.5em;
}

but then for every chapter, it creates a new style, even though it does the same thing. So my CSS comes out looking like:

header
{
font-size: 1.5 em;
font-weight: bold;
margin-bottom: 0.5em;
}

header-1
{
font-size: 1.5 em;
font-weight: bold;
margin-bottom: 0.5em;
}

header-2
{
font-size: 1.5 em;
font-weight: bold;
margin-bottom: 0.5em;
}
header-3
{
font-size: 1.5 em;
font-weight: bold;
margin-bottom: 0.5em;
}

It does this for all my styles, so my CSS is very cluttered when using 5.5, I have resorted to using CS4 because I didn't have this problem.

Any suggestions on what might be causing this. Just for reference, I create a chapter, and make all the styles for it. I then pour each chapter into the same file and save it as a new name. So I'm not sure if thats what is giving me all the multiple styles or if its something else.

Thanks in advance for any help.

wannabee
10-17-2011, 08:43 PM
I haven't come accross that but it sounds like you answered your own question.
Try loading styles or syncing instead.

SamL
11-08-2011, 12:52 PM
So I've also tried loading styles for each chapter, I get the same problem. InDesign seems to make a new style for every different chapter the style is used in, even though they are exactly the same. For a 20 chapter book, my CSS is a complete mess.

wannabee
11-09-2011, 06:45 PM
I don't have 5.5. I use 5 so I can't replicate your problem. However, you seem to be alone with it otherwise there would be more posts about it.
Have you tried doing the whole book as one file. That's what I do now.

SamL
11-10-2011, 01:46 PM
I actually just found this blog this morning where it mentions this problem and how to avoid it.

So incase anyone else runs in to this...

http://www.creativeprogression.com/taking-the-cs5-5-epub-plunge-export-tagging-to-the-rescue/