Answers.Body: <p>I've yet to see an ebook reading system that handles vertical centering. The best you could do is insert mandatory page breaks before such images and give them some <code>margin-top</code>&mdash;but you'd have to guess at how much.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-07-12T07:04:58.967Z
Answers.LastActivityDate: 2015-07-12T07:04:58.967Z
Answers.UserDisplayName: Tom
Body: <p>I've been writing an ebook in html and css. I have an image-heavy section in my ebook, and occasionally in the Kindle previewer, images will be pushed to the next "page". That's fine. What I'm wondering is if there is a way to vertically center the content on the current "page" - instead of having all of the content at the top, and a huge blank space below. Is there a css class or pseudo-class that applies to the content currently displayed or something like that?</p>
  
Tags: <formatting>
Title: Any way to center whatever content appears on the screen?
UserDisplayName: Phillip Dannels
ThreadText: # Any way to center whatever content appears on the screen?
  
  (Asked by: username_0 on 2015-07-11)
  
  I've been writing an ebook in html and css. I have an image-heavy section in my ebook, and occasionally in the Kindle previewer, images will be pushed to the next "page". That's fine. What I'm wondering is if there is a way to vertically center the content on the current "page" - instead of having all of the content at the top, and a huge blank space below. Is there a css class or pseudo-class that applies to the content currently displayed or something like that?
  
  **Tags:** formatting
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-07-12. Score: 1
  
  I've yet to see an ebook reading system that handles vertical centering. The best you could do is insert mandatory page breaks before such images and give them some `margin-top`—but you'd have to guess at how much.
  
  
  ---
  
  