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 09-02-2010, 07:36 PM   #1
theducks
Grand Sorcerer
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: 15,069
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Chapter Head Text Over Image

My CSS skills are basic
I am trying to mimic the printed version.

I have an Image that is used on every chapter
On that (in the lower 1/3) I want the chapter digit (text). see attachment

The problem is if I re-flow (zoom) on my reader text, the digit moves out of place (ugly).

How do I stop the re-size of just this text (64 Images is not the answer type I want )

Existing coding :
Code:
/* Overlay Chapter digit  */

/* the code  withe the problem */

  <p class="calibre5"></p>

  <div class="overall">
    <p class="big1 calibre8 middle"><br />
    &nbsp;<br />
    &nbsp; 1</p>
  </div>

  <p class="calibre8 sgc-2"><br class="calibre2" /></p>

  
  /* ========== the CSS pieces ============*/
  div.overall {  
	display: block;
	background-image: url("../Images/image02.gif");
	background-repeat: no-repeat;
	background-position: center;
	height: 424px;
	width: 180;
  	position: relative; 
    top: 10
    }
div.middle{
	position: relative;
	margin-top: 5	
	}
  
  .big1 {
    display: block;
    font-size: 5em;
    font-weight: normal;
    margin-bottom: 0.5em;
    margin-left: 0;
    margin-right: 0;
    margin-top: .5em;
    text-align: center;
    text-indent: 0
    }
	 .calibre8 {	
    font-style: italic
    }
Attached Thumbnails
Click image for larger version

Name:	overlaytext.jpg
Views:	210
Size:	79.2 KB
ID:	57542  
theducks is offline   Reply With Quote
Old 09-02-2010, 08:15 PM   #2
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 263
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Specify the font-size for the text in pixels.
Attached Files
File Type: epub image_test.epub (5.4 KB, 150 views)
dmapr is offline   Reply With Quote
 
Advertisement
Old 09-02-2010, 08:24 PM   #3
theducks
Grand Sorcerer
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: 15,069
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dmapr View Post
Specify the font-size for the text in pixels.
It still moves, BUT it stays put (centered)
theducks is offline   Reply With Quote
Old 09-02-2010, 08:49 PM   #4
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 263
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Sorry, for some reason I thought you were talking about changing the font size, not using the zoom function. I never used zoom, so I don't know how that works. Can you get away with using font sizes instead of zooming or is it something not available on Astak?
dmapr is offline   Reply With Quote
Old 09-02-2010, 08:58 PM   #5
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 263
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Just tried zoom on my reader, and it seems to work fine.
Attached Thumbnails
Click image for larger version

Name:	screen161.jpg
Views:	96
Size:	24.9 KB
ID:	57545   Click image for larger version

Name:	screen162.jpg
Views:	94
Size:	64.4 KB
ID:	57546  
Attached Files
File Type: epub image_test.epub (5.4 KB, 151 views)
dmapr is offline   Reply With Quote
Old 09-02-2010, 09:02 PM   #6
theducks
Grand Sorcerer
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: 15,069
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dmapr View Post
Just tried zoom on my reader, and it seems to work fine.
Maybe it is Sigil? I need to send to my reader, I am making the changes to the epub now
theducks is offline   Reply With Quote
Old 09-02-2010, 09:18 PM   #7
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 263
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Quote:
Originally Posted by theducks View Post
Maybe it is Sigil? I need to send to my reader, I am making the changes to the epub now
You'll post the end result, right?
dmapr is offline   Reply With Quote
Old 09-02-2010, 09:43 PM   #8
charleski
Wizard
charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.charleski ought to be getting tired of karma fortunes by now.
 
Posts: 1,188
Karma: 727236
Join Date: Sep 2009
Device: PRS-505
Specify the margins in pixels as well.
charleski is offline   Reply With Quote
Old 09-02-2010, 09:44 PM   #9
theducks
Grand Sorcerer
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: 15,069
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dmapr View Post
You'll post the end result, right?
ADE (on my reader) won't center images (known) that heading, but the rest WORKS as desired.
Calibre viewer renders the font a bit funny, but it works there.


Are you referring to the code? (PM if other)
theducks is offline   Reply With Quote
Old 09-03-2010, 03:41 PM   #10
dmapr
Addict
dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.dmapr composes epic poetry in binary.
 
Posts: 263
Karma: 90958
Join Date: Sep 2009
Device: PRS-950, Kobo Aura HD
Quote:
Originally Posted by theducks View Post
ADE (on my reader) won't center images (known) that heading, but the rest WORKS as desired.
Calibre viewer renders the font a bit funny, but it works there.

Are you referring to the code? (PM if other)
No, sorry for misunderstanding — I meant the end result of the investigation, i.e. the report of how successful it was on the reader — and that you did

Bummer about the centering… perhaps at some point the ADE in your reader will be updated?
dmapr is offline   Reply With Quote
Old 09-03-2010, 04:32 PM   #11
theducks
Grand Sorcerer
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: 15,069
Karma: 5939999
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by dmapr View Post
No, sorry for misunderstanding — I meant the end result of the investigation, i.e. the report of how successful it was on the reader — and that you did

Bummer about the centering… perhaps at some point the ADE in your reader will be updated?
II was less than clear on the results.

VERY GOOD. The digits (the text), stay right where I wanted them at reasonable Zoom points (even at Zoom 5, the highest on my PEz. And the image is part off screen at that zoom )
Much
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
wrapped text around an image Ambar ePub 2 07-05-2010 09:55 AM
Double chapter break when removing first image tochill Calibre 0 03-04-2010 08:41 PM
Image maps as Chapter Headings? kjk Sigil 6 10-17-2009 07:27 PM
PDF Image -> OCR -> text frikk Workshop 9 07-08-2009 08:21 PM
text and image pimpoum PDF 2 05-31-2009 05:26 AM


All times are GMT -4. The time now is 02:16 PM.


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