|
|
#1 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
Question: How to display overwritten/overlapping text
I would like to simulate the effect of overwritten text, as one might seen on a typewriter where two (or more) characters have been struck over the other(s). Do existing epub2 and epub3 e-reader allow for this effect?
my current idea is to use "letter-spacing" like this: Code:
.ow {
letter-spacing: -0.65em;
margin: 0 0.25em;
}
.ow2 {
margin: 0 0.25em;
}
Code:
<p>I have <span class="ow">tx</span><span class="ow">ox</span><span class="ow2"> </span>go.</p> Alternately, is there a better CSS solution? |
|
|
|
|
|
#2 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,878
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
Code:
<p>This text is<span class="over">overwritten</span> and this is not overwritten.</p> Code:
.over {
display: inline-block;
margin-left: -5em; /* or what you wish */
}
Last edited by RbnJrg; 07-02-2025 at 09:45 PM. |
|
|
|
|
|
|
#3 |
|
Fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 507
Karma: 65460
Join Date: Jun 2011
Device: Kindle
|
@RbnJrg.... welp. Your solution is definitely superior to mine.
Thank you. And to your knowledge, e-readers will honor this? (separately, does letter-spacing only work in epub3, or does it work in epub2, too?) |
|
|
|
|
|
#4 | |||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,878
Karma: 8821117
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
|
Quote:
![]() Quote:
Quote:
|
|||
|
|
|
|
|
#5 | |
|
Still reading
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 15,008
Karma: 111111255
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
|
Letter spacing might work in headings sometimes on ADE /epub2?
An annoying feature of headings is that they may automatically bold, which is certainly not wanted if the font face is a bold kind, so the CSS for a heading might need Quote:
|
|
|
|
|
|
|
#6 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80,786
Karma: 150249619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
The only thing you can do in ADE 2.0.1 is to embed a font that has a thin space and use that to space the letters.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Overlapping Text in Epub | VideoPac | Viewer | 5 | 03-17-2022 01:17 PM |
| Overlapping Text Upon Conversion | jrett | Kindle Formats | 5 | 02-20-2017 02:45 PM |
| Text Overlapping Image in Nook for PC, Help | dvrader | Sigil | 4 | 12-18-2012 08:08 AM |
| Overlapping text | jeeperz | Kobo Reader | 23 | 09-26-2011 10:03 PM |
| EPUB Overlapping Text - Please Help | coaver | Calibre | 16 | 07-27-2010 01:40 AM |