Separators Alignment Issue

Hi everyone, I’m new to Scrivener and these forums.

I have a question about separators between scenes. I’m trying to compile my project for ePub3 Ebook format and would like to separate chapter scenes by using three asterisks (***). I managed to do this by going into the Separators tab, then choosing Custom for ‘Separator between sections’ and entering *** in the textbox. The issue I’m facing is that the asterisks are getting left-aligned. Is there a way to have them centered?

Thanks.

Check the paragraph before each separator in the compiled product. Does that paragraph have a style, and is it left-aligned? Look at 24.4 in the manual.

Check this out. Hope it helps.

Thank you both for your help. I managed to sort this by using Calibre. I just added ‘text-align: center;’ in separator class of the css file.

1 Like

Thanks for the report. This is a bug; it should of course be inserting the necessary CSS to align custom separators in an expected manner for you.

In the meanwhile though, you do not have to hack this into the output every time you compile:

  1. Double-click the Ebook compile format in the left sidebar to edit it.

  2. In the CSS compile format pane, paste the following:

    .separator { text-align: center; text-indent: 0em; margin-left: 0em; margin-right: 0em; }
    

This approach will keep the separator from being slightly offset by any indent settings that might be impacting the line otherwise.

1 Like

I always thought a Zero value never needs a Unit. :wink:

I’ve been told that it is better for compatibility to supply one when working with ebooks, particularly once you get into older devices. Ordinarily though, you are correct in that zero all by itself is perfectly acceptable, and indeed supplying a unit to zero is most illogical! :lab_coat:

do you mean this pane…

If so, then can you be more specific of where exactly to paste this line of CSS code?

Yes, that’s the one. You can only edit one side of this, the “Custom Stylesheet” section. Anywhere in there will do, so long as it’s on its own line, so just make a little space for it with some empty lines.