|
|
#1 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
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 />
<br />
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
}
|
|
|
|
|
|
#2 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Specify the font-size for the text in pixels.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#4 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
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?
|
|
|
|
|
|
#5 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Just tried zoom on my reader, and it seems to work fine.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#7 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
|
|
|
|
|
|
#8 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,196
Karma: 1281258
Join Date: Sep 2009
Device: PRS-505
|
Specify the margins in pixels as well.
|
|
|
|
|
|
#9 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
|
|
|
|
|
#10 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 469
Karma: 600816
Join Date: Sep 2009
Device: Kobo Aura HD, Kobo Aura One
|
Quote:
![]() Bummer about the centering… perhaps at some point the ADE in your reader will be updated? |
|
|
|
|
|
|
#11 | |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,271
Karma: 61916422
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
![]() 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
|
|
|
|
|
![]() |
|
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 | 2 | 05-31-2009 05:26 AM | |