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

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 07-28-2012, 10:49 AM   #1
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 299
Karma: 56788
Join Date: Jun 2011
Device: Kindle
CSS/HTML question

I'm trying to duplicate the effect where a heading has some text justified to the left followed by some blank space, and then some text justified to the right, all on the same line (see circled area on attached image).

My instinct would be to create a single-row table with two cells. However, I know that pre-KF8 mobi files struggle with tables (I don't know how well KF8 deals with them). My question then is this: is there another way to achieve that formatting effect, and if not, does anyone know how well a KF8 conversion from epub in Calibre renders tables (for display on a Kindle device). I realize this is a little convoluted...
Attached Thumbnails
Click image for larger version

Name:	sample.jpg
Views:	111
Size:	17.4 KB
ID:	89830  
ElMiko is offline   Reply With Quote
Old 07-28-2012, 11:22 AM   #2
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 980
Karma: 1300318
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by ElMiko View Post
My instinct would be to create a single-row table with two cells. However, I know that pre-KF8 mobi files struggle with tables .
How's this ??

No guarantee that it will work on a mobi, but an alternative to a table
Attached Files
File Type: epub test.epub (2.0 KB, 109 views)
mmat1 is offline   Reply With Quote
 
Enthusiast
Old 07-28-2012, 11:41 AM   #3
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 299
Karma: 56788
Join Date: Jun 2011
Device: Kindle
@mmat1 - veddy veddy clever. Thanks for that. I'm going to play around with that and the table option and see how they convert and render on a Kindle. FWIW, the KF8 conversion viewed through calibre's reader rendered just fine.
ElMiko is offline   Reply With Quote
Old 07-28-2012, 12:05 PM   #4
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,701
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by mmat1 View Post
How's this ??

No guarantee that it will work on a mobi, but an alternative to a table
The ePub didn't work. One side was a line above the other.
JSWolf is offline   Reply With Quote
Old 07-28-2012, 12:31 PM   #5
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 299
Karma: 56788
Join Date: Jun 2011
Device: Kindle
Quote:
Originally Posted by JSWolf View Post
The ePub didn't work. One side was a line above the other.
weird....worked fine with me... Not only that, but it rendered perfectly on the kindle, even when the table wouldn't. What viewer were you using that made it render incorrectly? did you make any additions to the text?
ElMiko is offline   Reply With Quote
Old 07-28-2012, 12:34 PM   #6
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,983
Karma: 44005669
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Didn't work for me either in ADE; the right hand side seems to be a line above the left hand side.
PeterT is offline   Reply With Quote
Old 07-28-2012, 12:39 PM   #7
Jabby
Jr. - Junior Member
Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.Jabby ought to be getting tired of karma fortunes by now.
 
Posts: 572
Karma: 2000170
Join Date: Aug 2010
Location: East Texas
Device: Archos, Asus, HP, Lenovo, Nexus and Samsung tablets in 7,8 and 10"
I tried Mantano reader and it failed - right above the left.

Sure would like to see a solution to this problem.

Regards - John
Jabby is offline   Reply With Quote
Old 07-28-2012, 12:45 PM   #8
PeterT
Taking a break; Fed up
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
PeterT's Avatar
 
Posts: 6,983
Karma: 44005669
Join Date: Nov 2007
Location: Toronto
Device: Wife: Touch, Arc, Vox Me: Nexus 7, Glo
Does this idea help? http://css-tricks.com/left-align-and...the-same-line/
PeterT is offline   Reply With Quote
Old 07-28-2012, 01:01 PM   #9
jbacelar
Connoisseur
jbacelar began at the beginning.
 
Posts: 70
Karma: 30
Join Date: Dec 2011
Location: Spain, south coast
Device: PocketBook 622
This works fine in ADE
test B.epub
jbacelar is offline   Reply With Quote
Old 07-28-2012, 01:06 PM   #10
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 980
Karma: 1300318
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by ElMiko View Post
weird....worked fine with me... Not only that, but it rendered perfectly on the kindle, even when the table wouldn't. What viewer were you using that made it render incorrectly? did you make any additions to the text?
Sorry ...

It seemes to work well for me but i didn't check it fully. I got the same results with ADE as the others.

You should give PeterT's suggestion a try ...
mmat1 is offline   Reply With Quote
Old 07-28-2012, 01:17 PM   #11
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 299
Karma: 56788
Join Date: Jun 2011
Device: Kindle
Interesting... none except mmat's seems to render as intended in Sigil (or consequently in Calibre). likewise, the mobi/KF8 conversions don't render correctly. It seems you can either design the epub to display correctly in calibre (and its KF8 conversion to render correctly on Kindle), or you can design it to render correctly on ADE, but not both.

EDIT: Wrote bad code... got bad result. GIGO. ignore this post
Attached Files
File Type: epub TEST-elmiko(2).epub (2.3 KB, 57 views)

Last edited by ElMiko; 07-28-2012 at 01:30 PM.
ElMiko is offline   Reply With Quote
Old 07-28-2012, 01:19 PM   #12
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 980
Karma: 1300318
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by jbacelar View Post
This works fine in ADE
Attachment 89841
sorry, but I get bad results on browser-based renderers.

this seams to be the solution, following the advice given by PeterT's link

(Tested with ADE )
Attached Files
File Type: epub test_C.epub (1.9 KB, 65 views)
mmat1 is offline   Reply With Quote
Old 07-28-2012, 01:25 PM   #13
mmat1
Det
mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.mmat1 ought to be getting tired of karma fortunes by now.
 
mmat1's Avatar
 
Posts: 980
Karma: 1300318
Join Date: Jan 2012
Location: Zischebattem
Device: Acer Lumiread
Quote:
Originally Posted by ElMiko View Post
@ ElMiko
you misspelled the classname in your sample: "alightright"

a light right ??
mmat1 is offline   Reply With Quote
Old 07-28-2012, 01:30 PM   #14
ElMiko
Addict
ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.ElMiko actually enjoys Vogon poetry.
 
ElMiko's Avatar
 
Posts: 299
Karma: 56788
Join Date: Jun 2011
Device: Kindle
You're all rockstars. thanks for the help.

@mmat- yeah, i just figured that out myself.... feeling pret-tee dumb.

for the record, renders poifectly on a Kindle, using calibre's KF8 conversion.

Last edited by ElMiko; 07-28-2012 at 02:06 PM.
ElMiko is offline   Reply With Quote
Old 07-28-2012, 02:27 PM   #15
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 37,701
Karma: 18475502
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad, nook STR
Quote:
Originally Posted by ElMiko View Post
weird....worked fine with me... Not only that, but it rendered perfectly on the kindle, even when the table wouldn't. What viewer were you using that made it render incorrectly? did you make any additions to the text?
Same as PeterT. I used ADE for Windows to view it. I did have a look at the code and I did notice that each header was supposed to be on a separate line as they both used paragraph level coding.
JSWolf 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
epub code snippets (html / css) zelda_pinwheel ePub 179 10-05-2012 06:37 PM
Importing css in html files shotsky Conversion 6 07-14-2012 05:34 PM
HTML/CSS for (German) s p a c e d o u t emphasis frabjous Workshop 21 05-16-2011 04:52 PM
Small html/css bug twaits Calibre 5 01-12-2010 10:26 AM
HTML and CSS for Dummies weedfreak Sigil 17 01-07-2010 09:34 PM


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


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