|
|
#1 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2010
Device: sony reader
|
why font-size is not use in kindle
css:font-size:0.5em font-size:1em Best Regards, |
|
|
|
|
|
#2 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,195
Karma: 2508097
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Because the mobipocket format does not understand CSS at all?
|
|
|
|
|
Enthusiast
|
|
|
|
#3 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2010
Device: sony reader
|
give me a help?
could you give me the way to slove this
|
|
|
|
|
|
#4 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,195
Karma: 2508097
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
Use something like this:
Code:
This font is normal <font size="+1">this is larger</font>, and <font size="-1">this is smaller</font>. |
|
|
|
|
|
#5 |
|
Member
![]() Posts: 10
Karma: 10
Join Date: Oct 2010
Device: sony reader
|
thank you very much,Can I make friends for you?
|
|
|
|
|
|
#6 |
|
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
The MOBI format and the Kindle do recognise some CSS. It's just kind of patchy. I just tested em values for the CSS font-size property, and they seemed to work properly - when I used 1em I got the same size as the default text, and when I used 0.5em the text was substantially smaller.
(See attached screen shot.) - Donna |
|
|
|
|
|
#7 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,195
Karma: 2508097
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon
|
It's probably not the MOBI format or Kindle, but the program you use to convert the initial HTML+CSS into MOBI. What the MOBI format actually supports is <font size="-1"> (relative) or <font size="3"> (absolute).
Last edited by Jellby; 11-08-2010 at 04:35 AM. |
|
|
|
|
|
#8 | |
|
Bookmaker & Cat Slave
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,197
Karma: 6274871
Join Date: Apr 2010
Location: Phoenix, AZ
Device: Kindle2, iPad, KindleFire and NookColor
|
Quote:
I've had good luck with using ems, and it translates nicely across multiple platforms, since I make all my books from ePUBs first with both "normal" css and an ADE xpgt template for fun. (har). HTH, Hitch
__________________
I produce eBooks. www.booknook.biz Follow us on Twitter "If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." - Red Adair |
|
|
|
|
|
|
#9 |
|
Enquiring Mind
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 562
Karma: 42350
Join Date: Aug 2010
Location: London, UK
Device: Kindle 3 (WiFi)
|
(Hi Hitch!
)Heh... thank you kindly for those nice words, Hitch, but last few days I've been finding out more stuff I didn't know. There's always more, isn't there? ![]() When I've been able to, I've been poking around with mobiunpack.py and a few other things, and Jellby is quite right - all of the CSS in the HTML used to create a mobi file gets turned into basic and/or proprietary HTML inside the mobi file by Kindlegen. For example: Code:
<p style="text-indent:0.3in">Paragraph with first line indent 0.3in.</p> <p style="text-indent:5em">Paragraph with first line indent 5em.</p> <p style="font-size:0.5em">Paragraph with font size 0.5em.</p> <p style="font-size:16pt">Paragraph with font size 16pt.</p> <p style="margin-left:0.5in;margin-top:12pt;margin-bottom:12pt">Paragraph with left margin 0.5in, and 12pt space before and after.</p> <p style="margin-left:20%;margin-top:3em;margin-bottom:20px">Paragraph with left margin 20%, 3em space before and 20px space after.</p> Code:
<p width="29">Paragraph with first line indent 0.3in.</p> <p width="5em">Paragraph with first line indent 5em.</p> <p><font size="-3">Paragraph with font size 0.5em.</font></p> <p><font size="5">Paragraph with font size 16pt.</font></p> <p height="16"><blockquote>Paragraph with left margin 0.5in, and 12pt space before and after.</blockquote></p> <div height="16"></div> <p height="3em"><blockquote>Paragraph with left margin 20%, 3em space before and 20px space after.</blockquote></p> <div height="20"></div> agebreak/> tag), then it'll probably work. If there's no way of doing it with HTML 3.2, it probably won't. grrrrrrr!- Donna |
|
|
|
|
|
#10 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,436
Karma: 1040308
Join Date: Jan 2009
Device: Kindle, iPad (not used much for reading)
|
The HTML tags that are supported are documented on the Mobipocket site: http://www.mobipocket.com/dev/articl...eFolder=prcgen
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Font-size problem, Kindle 2 | hkdorama | Mobi | 2 | 11-07-2010 03:57 PM |
| Can't change font or font size in ereaders | jmacg | Sigil | 30 | 10-23-2010 09:21 PM |
| PRS-300 Med font size too big, but small font size too small | eli2k | Sony Reader | 4 | 05-28-2010 09:47 AM |
| Changing of font size on PDF for Kindle DX | iggysprint | Amazon Kindle | 9 | 06-10-2009 04:01 AM |
| kindle 2 font size jump | Sonist | Amazon Kindle | 2 | 02-26-2009 12:32 PM |