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

Center vertically - ePub.

New Here ,
Jun 11, 2017 Jun 11, 2017

Hi ! I'm making a ePub and I have one problem : I can't center vertically the text. I'm working on a reflowable layout ePub so everyone can choose the size of the characters, everythong works except the vertically position of the text. I tried some CSS tricks, I searched everywhere on the paragraph styles options...So now I need help.

Thanks.


(Sorry if I made some mistakes, I'm french.)

TOPICS
EPUB
866
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 ,
Jun 11, 2017 Jun 11, 2017

You may need to create an extra Paragraph style for just those paragraphs that need extra line spacing; use Space Before and/or Space After.

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
People's Champ ,
Jun 11, 2017 Jun 11, 2017

But how can one know how big the screen is going to be? Without that info, what is the right measurement for space before?

Ariel

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
New Here ,
Jun 11, 2017 Jun 11, 2017

I tried but I can just ask a number of pixel, I would need a percentage (50% before, 50% after). I think I need CSS but I begin with ePub, InDesign and CSS so I have difficulties to include new rules inside HTML and CSS code. I use Sigil to open the ebook to work on the code. I even found codes but I don't know how include it in the code.

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
Guru ,
Jun 14, 2017 Jun 14, 2017
LATEST

"I even found codes but I don't know how include it in the code." What code did you find? When you export to ePUB you have the option to add your own code: EPUB-Reflowable Layout Export Options>CSS>Additional CSS>Add style Sheet. You just have to associate it with the paragraph style name of the text you want to center.

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