Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 07-04-2013, 09:03 AM   #1
brinded
Member
brinded began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2013
Device: iPad2
missing header

I'm trying to decrease the space that appears above titles in order to fit more content onto each page. For reasons unknown, opening a Pages ePub in Sigil causes a larger gap to appear above title.

Looking at html, it appears to be using h4:

Code:
<body>
  <h4 id="sigil_toc_id_1"><span id="chapter-1-sh1"></span>IN HER WORDS</h4>

  <p class="s6 s7">I first thought about writing this book back in 1999...
So, I went to Sigil CSS to look for h4 but it doesn't appear to exist. Many other headings do, but not h4.

I suppose I could create/define an h4, but other than space before title, I'm pretty happy with the way it is - and don't want to go messing with something that isn't (too) broken.

Any ideas?

ps attachment shows screenshots from iPad with Pages ePub alongside post-Sigil ePub.
Attached Files
File Type: pdf Pages.pdf (69.4 KB, 58 views)
File Type: pdf Sigil.pdf (70.4 KB, 61 views)
brinded is offline   Reply With Quote
Advert
Old 07-04-2013, 09:19 AM   #2
brinded
Member
brinded began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jul 2013
Device: iPad2
Incidentally, the h4 style originates from Apple's sample document - provided on support pages for Creating ePub files with Pages:
Quote:
Download the “ePub Best Practices” sample document at the following web address:
http://images.apple.com/support/page...actices_EN.zip
brinded is offline   Reply With Quote
Old 07-04-2013, 02:38 PM   #3
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 20,381
Karma: 20257282
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Astak Pocket Pro, K4NT,Galaxy Tab 2
you could resize everything about a h4 in the CSS

h4 {font-size: 12pt; margin-top: 6pt; margin-bottom: 6pt;}
choose your own values

IMHO slightly better (an allows for h4 to be used normally elsewhere), is to create a style with your values and add class="mystylename" to each of those (h4) places you want to slim down
theducks is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing a header pckopp Calibre 1 12-11-2010 01:33 PM
Missing covers, missing content. Getting worse with each sync. Mememememe Kobo Reader 7 06-16-2010 09:02 AM
Changing the header VicLavigne Calibre 2 12-28-2008 10:46 AM
No Title Header in 0.4.91? nellow Calibre 14 12-15-2008 04:35 PM


All times are GMT -4. The time now is 02:14 AM.


MobileRead.com is a privately owned, operated and funded community.