03-08-2017, 11:46 PM | #1 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Question about styling Font-Size
I have never used <small>, <large>, <x-small>, etc. I've always just styled font-sizes for a special <p>, or <div>, or <span>.
Now I am facing a project that could require Hundreds of spans (my very least favorite dessert), and I thought I would try those tags instead. I often style <em> and <strong>, and it seems I can also style <small>, <large>, etc. These display fine in ADE for PC and Calibre reader. I can set <small> to be .75em; bold; , and <large> to be 1.5em, italic --- and they work. Stupid question of the day (but better safe than sorry) --- will other software and reading devices honor this styling? Thanks Last edited by GrannyGrump; 03-08-2017 at 11:56 PM. |
03-09-2017, 12:57 PM | #2 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
I suspect they will. The sizing was in the original spec prior to ePub. However, I do not know if CSS will work to adjust them.
|
03-10-2017, 04:09 AM | #3 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
I guess I will give it a go. What's the worst that could happen, after all...
Thanks |
03-15-2017, 02:48 PM | #4 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
You could do a .small, .large, .x-small, etc (in the CSS) and then use a span and that will work.
|
03-16-2017, 12:11 AM | #5 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Yes, I am going to have to go with a span. It turns out that <large> <x-large> etc have all been deprecated, and <small>, the only survivor of those tags, is now intended as a sematic markup. Thanks to Tex2000ans for pointing me to the information.
|
03-16-2017, 07:35 AM | #6 |
Resident Curmudgeon
Posts: 74,037
Karma: 129333114
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Where is it shown that <large>, <x-large>, etc. are deprecated? They aren't in ePub 2 and for an ePub renderer to be ePub 2 compatible, they have to be supported.
|
03-17-2017, 01:17 AM | #7 |
Obsessively Dedicated...
Posts: 3,200
Karma: 34977896
Join Date: May 2011
Location: JAPAN (US expatriate)
Device: Sony PRS-T2, ADE on PC
|
Sorry, I was sloppy in my statement. Those *entities* (enclosed in <>) are deprecated in html5, but possibly they are ok for epub. The *terms* (without the <>) are definitely still ok in epub when used to define classes in the css.
Last edited by GrannyGrump; 03-17-2017 at 06:11 AM. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question on changing font size | slayda | Marvin | 0 | 10-04-2013 10:48 AM |
Epub Font Size Question | Amalthia | Calibre | 15 | 01-03-2011 01:20 PM |
TOC font size question | michaelbr | Sigil | 5 | 12-07-2010 07:03 AM |
PRS-300 Font size question | cromulent742 | Sony Reader | 6 | 07-25-2010 12:01 PM |
Font type / size question .. | askyn | Fictionwise eBookwise | 6 | 06-02-2009 10:34 AM |