Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-26-2012, 06:10 PM   #1
iroquois
Junior Member
iroquois began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2012
Device: none
Local css ignored by Kindle??

Hi there. I'm trying to put together some books for Kindle and I'm having some trouble with local css styles.

Opening my epub file with Kindle Previewer, it worked perfectly for Kindle Fire. The thing is, the previews for other Kindle devices seem to be ignoring local css styles defined in the head section. The question is why.
Take this page for example:


Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>Asuntos internos</title>
  <link href="../Styles/template.css" rel="stylesheet" type="text/css" />
  <style type="text/css">
/*<![CDATA[*/

  p.sgc-1 {margin-top: 50%; text-align: center; margin-bottom: 0px; font-size: 1.5em;}
  p.sgc-2 {text-align: center; text-style: italic; font-weight: normal; margin-top: 1%;}
  /*]]>*/
  </style>
</head>

<body>
  <h1 id="heading_id_1" title="Asuntos internos"></h1>

  <div class="story" id="title.xhtml" xml:lang="es-ES" xmlns:xml="http://www.w3.org/XML/1998/namespace">
    <p class="TITULOS sgc-1">ASUNTOS INTERNOS</p>

    <p class="TITULOS sgc-2">David Voloj</p>
  </div>
</body>
</html>

Here's how it looks on KF:



Other Kindle devices:




Any suggestions?
iroquois is offline   Reply With Quote
Old 05-27-2012, 04:36 PM   #2
iroquois
Junior Member
iroquois began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2012
Device: none
Anybody?
iroquois is offline   Reply With Quote
Advert
Old 05-27-2012, 05:23 PM   #3
ixtab
(offline)
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,907
Karma: 6736094
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
You are probably asking in the wrong forum. You may have a better chance of getting help in the E-Book Formats forum.
ixtab is offline   Reply With Quote
Old 05-27-2012, 05:32 PM   #4
iroquois
Junior Member
iroquois began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Feb 2012
Device: none
Quote:
Originally Posted by ixtab View Post
You are probably asking in the wrong forum. You may have a better chance of getting help in the E-Book Formats forum.
Thanks, I'll create a new thread there then.


Can anybody close this?
iroquois is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle Books Now Available at Local Libraries carld News 34 09-22-2011 02:44 PM
Is Kindle 4 coming in weeks? My local Best Buys completely out of Kindle 3 ovaldisk Amazon Kindle 4 08-11-2011 10:22 AM
Kindle books in local currency? JoshLessard Amazon Kindle 6 08-07-2010 08:20 AM
Kindle 2 and local library gin_ger Amazon Kindle 13 02-24-2010 10:16 PM
Kindle Browser and local files slm Amazon Kindle 2 06-03-2008 08:29 PM


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


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