View Single Post
Old 05-19-2013, 03:15 PM   #474
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 44,938
Karma: 168802811
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quexos View Post
Ok, like I said this is over my league. Like when you mention "poem" as an element to control some values, it's confusing cause I don't have poetry in my books so why is "poem" an element in css code ?

So I guess I'll stick with the basics of css and your sample code shows that this "svg" code is to be entered right after "body class" so I'll try that and see how it goes

And to answer your question I view my ebooks with "Reader for PC" it's the Sony soft to see epubs.
Poem is not a css element. It's a class I use for poems (songs, etc.) that are in an epub.

Code:
.poem  {
    display: block; 
    margin-top: 1.5em;
    margin-bottom: 1.5em;	
    margin-right:10%;
    margin-left:10%;
    }
So a poem in an ebook could have:
Code:
  <p class="poem">In Flanders fields the poppies blow<br />
     Between the crosses, row on row,<br />
   That mark our place; and in the sky<br />
   The larks, still bravely singing, fly<br />
Scarce heard amid the guns below.</p>
As I said, there is a learning curve. My default stylesheet has quite a few special purpose classes that are not used all that often but handy to have when I do need them. If you didn't like how I formatted a poem in an ebook instead of editing multiple places in the ebook, you could just edit the poem class in the stylesheet to make the changes in one spot.

If you want to see an epub on your PC close to how your Kobo will display it, try using Adobe's ADE. The code base is pretty much the same.

Regards,
David
DNSB is offline   Reply With Quote