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

Go Back   MobileRead Forums > E-Book Formats > Workshop

Notices

Reply
 
Thread Tools Search this Thread
Old 09-04-2014, 07:17 AM   #1
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,104
Karma: 5861069
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
fill out line (line next to text)

I am trying to achieve this effect, but it doesn't really work out like I want to. No problem in Sigil and Calibre of course, but not in ADE and I want it also to work there as this gives a little more chance it will work on a reader.
The effect I am after is:


The only way I seem to make it work is via a table and ugly code. There must be something easier that is still ePUB2 compliant...
Toxaris is offline   Reply With Quote
Old 09-04-2014, 11:39 AM   #2
RbnJrg
Evangelist
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 474
Karma: 318996
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Toxaris View Post
I am trying to achieve this effect, but it doesn't really work out like I want to. No problem in Sigil and Calibre of course, but not in ADE and I want it also to work there as this gives a little more chance it will work on a reader.
The effect I am after is:


The only way I seem to make it work is via a table and ugly code. There must be something easier that is still ePUB2 compliant...
The following solution works fine for me under ADE:

1. In your .css stylesheet write:

Code:
h2 {
   text-align: right;
   margin-top: -1em;
   margin-bottom: 2.5em;
   font-size: 1.4em;
   border-bottom: 2px solid;
   height: 2em;
}

.text {
   float: right;
   width: 2.25em;
   line-height: 3em;
   font-size: 1.4em;
   font-family: serif;
   background: white !important;
}

p {
   text-align: justify;
   text-indent: 0em;
}
2. In your .xhtml file write:

Code:
<h2><span class="text">1999</span></h2>

<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla ac tellus nunc. Phasellus imperdiet leo metus, et gravida lacus.</p>
This is how it looks under ADE 3.0:

Click image for larger version

Name:	Image1.png
Views:	33
Size:	83.9 KB
ID:	127861

Below you can check the respective epub.

Regards
Rubén
Attached Files
File Type: epub FillOut Line.epub (2.7 KB, 18 views)

Last edited by RbnJrg; 09-04-2014 at 03:46 PM.
RbnJrg is offline   Reply With Quote
Old 09-04-2014, 01:12 PM   #3
Jellby
frumious Bandersnatch
Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.Jellby ought to be getting tired of karma fortunes by now.
 
Jellby's Avatar
 
Posts: 6,259
Karma: 4801167
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
Quote:
Originally Posted by RbnJrg View Post
background: white !important;
That's the problem I see. It will only work with white backgrounds.

But to avoid that I don't see at the moment any solution other that a table, or SVG.
Jellby is offline   Reply With Quote
Old 09-04-2014, 02:12 PM   #4
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,104
Karma: 5861069
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
The white backgrounds could be an issue, but it is elegant enough. It also works in ADE 1.7.2, which is my usual testing ground. Thanx!
Toxaris is offline   Reply With Quote
Old 09-04-2014, 03:44 PM   #5
RbnJrg
Evangelist
RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.RbnJrg ought to be getting tired of karma fortunes by now.
 
Posts: 474
Karma: 318996
Join Date: Mar 2013
Location: Rosario - Santa Fe - Argentina
Device: Kindle 4 NT
Quote:
Originally Posted by Toxaris View Post
The white backgrounds could be an issue, but it is elegant enough. It also works in ADE 1.7.2, which is my usual testing ground. Thanx!
You are welcome
RbnJrg is offline   Reply With Quote
Old 09-06-2014, 11:16 PM   #6
Tex2002ans
Fanatic
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 530
Karma: 562971
Join Date: Jul 2012
Device: Nook
Also had this topic, in which I asked a similar question dealing with text in the middle, with lines on either side:

http://www.mobileread.com/forums/sho...d.php?t=233587
Tex2002ans is offline   Reply With Quote
Old 09-07-2014, 03:40 AM   #7
Toxaris
Wizard
Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.Toxaris ought to be getting tired of karma fortunes by now.
 
Toxaris's Avatar
 
Posts: 3,104
Karma: 5861069
Join Date: Oct 2009
Location: Heemskerk, NL
Device: PRS-300, PRS-T1
Thank you! I do remember that topic but I was unable to find it.
Toxaris 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
Line over text Dalegaard ePub 19 06-11-2013 04:45 PM
Since 1.9.10, text slightly cut off on very bottom line danskmacabre Kobo Reader 33 01-13-2012 06:25 AM
Two columns of text, line down middle? chingu ePub 2 09-04-2011 07:12 PM
changing text line-height in css wjcroft EPUBReader 0 12-15-2010 04:13 PM


All times are GMT -4. The time now is 08:26 PM.


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