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

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 03-11-2017, 11:19 AM   #1
teh603
Autism Spectrum Disorder
teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.teh603 ought to be getting tired of karma fortunes by now.
 
teh603's Avatar
 
Posts: 1,209
Karma: 6244877
Join Date: Sep 2011
Location: Coastal Texas
Device: Android Phone
Not Hjacking- Two Fonts, No Breaks

So based on what I read in this thread, I can use span tags in words to make small caps. Does it also work with two different embedded fonts?

For example, if I want to do a title where the capital letters are a variant of the same font with extra ruffles and flourishes.

Making a new thread because I don't want to hijack, and my HTML skills are still about where they were the last time I posted.
teh603 is offline   Reply With Quote
Advert
Old 03-11-2017, 11:43 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 20,686
Karma: 20350406
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
This is really an EPUB question (I can move this thread for you)

Yes, that is a good use for a span

Code:
<h3 class="ct"><span class="sc">the stuff to sc</span> the rest of the text </h3>
I believe is the style for the Block level contains the overall style and the span(s), the exceptions to that.
theducks is offline   Reply With Quote
Old 03-11-2017, 11:52 AM   #3
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 16,448
Karma: 86260124
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Go ahead and move the thread, theducks. It really is a general EPUB topic.
DiapDealer is offline   Reply With Quote
Old 03-11-2017, 01:51 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 20,686
Karma: 20350406
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab 2(RIP)
Moderator Notice
Moved from Sigil
theducks is offline   Reply With Quote
Old 03-12-2017, 05:55 PM   #5
Turtle91
Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
Posts: 1,458
Karma: 11526836
Join Date: Dec 2012
Location: Altus, Oklahoma today
Device: iPhone 6/5/iPad 1,2 & Air/Surface Pro/Kindle PW
Quote:
Originally Posted by theducks View Post
This is really an EPUB question (I can move this thread for you)

Yes, that is a good use for a span

Code:
<h3 class="ct"><span class="sc">the stuff to sc</span> the rest of the text </h3>
I believe is the style for the Block level contains the overall style and the span(s), the exceptions to that.
If you want a different font for the capitals, then you would have to have a different <span> around them.

e.g.
Code:
<h3 class="ct"><span class="sc">T<span class="lowerSC">he</span> S<span class="lowerSC">tuff</span> T<span class="lowerSC">o</span> S<span class="lowerSC">c</span></span> the rest of the text </h3>

CSS:
.sc {font-family:"ruffles_flourishes"; font-size:1.1em; text-transform:uppercase}
.lowerSC  {font-family:serif; font-size:.9em}
Turtle91 is offline   Reply With Quote
Advert
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Style Sheet entry for a 'hanging' style AThirstyMind Kindle Formats 6 12-10-2016 12:28 AM
How to add alternate fonts without replacing system fonts.(this time this is a guide) techiemonkey Kindle Developer's Corner 17 09-12-2012 04:55 PM
Embedded fonts and inline style paulfiera Calibre 4 02-26-2012 01:32 PM
602 Problem with FBReader fonts, bold style Major Tom PocketBook 16 01-04-2012 09:08 PM
Mobi TOC style vs ePub style? phearlez Kindle Formats 3 04-11-2010 06:35 AM


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


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